Relates :
|
G1Allocator::_summary_bytes_used tracks the amount of memory used in regions that are not currently managed by G1Allocator or G1ArchiveAllocator. This member seems to be misplaced in G1Allocator because G1Allocator does not use it at all. G1CollectedHeap actually manages this value, there are multiple accessor functions just for it. G1CollectedHeap is the only one ever interested in total memory value, needing to sum up all components from all Allocators anyway. So I think the best option is to move _summary_bytes_used back to G1CollectedHeap, and let G1Allocator just be responsible for managing the memory it currently uses, until a better place is found.