RFR: 8202639: Use concrete Generation classes in SerialHeap and CMSHeap
stefan.karlsson at oracle.com
Fri May 4 09:56:50 UTC 2018
Please review this patch to add and use young_gen() and old_gen()
functions that add returns the concrete Generation classes.
GenCollectedHeap contains fields for the _young_gen and _old_gen, with
associated young_gen() and old_gen() accessors. These accessors return
These Generations are always DefNewGeneration and TenuredGeneration for
the Serial GC, and ParNewGeneration and ConcurrentMarkSweepGeneration
I propose that we expose two new accessors that return the concrete
Generation classes in SerialHeap and CMSHeap.
Working with these concrete classes will allow us to easier split the
Serial and CMS code. Specifically, this makes it possible to remove
ALL_SINCE_SAVE_MARKS_CLOSURES and associated macros. See:
More information about the hotspot-gc-dev