comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 23031:e5406a79ae90

8061715: gc/g1/TestShrinkAuxiliaryData15.java fails with java.lang.RuntimeException: heap decommit failed - after > before Summary: added WhiteBox methods to count regions and exact aux data sizes Reviewed-by: jwilhelm, brutisso
author azakharov
date Tue, 19 May 2015 15:49:27 +0200
parents b7c8142a9e0b
children ea47136e6ea4
comparison
equal deleted inserted replaced
23030:399885e13e90 23031:e5406a79ae90
1107 uint max_regions() const { return _hrm.max_length(); } 1107 uint max_regions() const { return _hrm.max_length(); }
1108 1108
1109 // The number of regions that are completely free. 1109 // The number of regions that are completely free.
1110 uint num_free_regions() const { return _hrm.num_free_regions(); } 1110 uint num_free_regions() const { return _hrm.num_free_regions(); }
1111 1111
1112 MemoryUsage get_auxiliary_data_memory_usage() const {
1113 return _hrm.get_auxiliary_data_memory_usage();
1114 }
1115
1112 // The number of regions that are not completely free. 1116 // The number of regions that are not completely free.
1113 uint num_used_regions() const { return num_regions() - num_free_regions(); } 1117 uint num_used_regions() const { return num_regions() - num_free_regions(); }
1114 1118
1115 void verify_not_dirty_region(HeapRegion* hr) PRODUCT_RETURN; 1119 void verify_not_dirty_region(HeapRegion* hr) PRODUCT_RETURN;
1116 void verify_dirty_region(HeapRegion* hr) PRODUCT_RETURN; 1120 void verify_dirty_region(HeapRegion* hr) PRODUCT_RETURN;