Relates :
|
The member MemRegionClosure* _preconsumptionDirtyCardClosure; is used by CMS to get the young gen collector to update the mod union table The field is currently in the abstract base class Space which unfortunately causes the field to be present in all subclasses, including G1's HeapRegions. In order to allow for future addition of fields to HeapRegions without increasing the footprint we should move the CMS-specific field to CompactibleFreeListSpace. In order to avoid changing the callers of the code the accessor is made virtual in the Space class, this should not be a performance problem since the caller already contains several calls to other virtual functions.