In Generational ZGC, we rewrote parts of the chunked array clearing. I'd like to bring over the refactoring that we did there to upstream ZGC.
The patch backtracks on the change we did to allow ZObjArrayAllocator to override the finish function, and instead performs the chunked clearing in an overridden initialize function.
The patch backtracks on the change we did to allow ZObjArrayAllocator to override the finish function, and instead performs the chunked clearing in an overridden initialize function.