--- old/src/hotspot/share/gc/g1/g1CollectedHeap.hpp 2020-06-10 10:12:02.304953062 +0200 +++ new/src/hotspot/share/gc/g1/g1CollectedHeap.hpp 2020-06-10 10:12:02.216950040 +0200 @@ -566,7 +566,7 @@ return _g1mm; } - void resize_heap_if_necessary(); + void resize_heap_after_full_collection(); G1NUMA* numa() const { return _numa; } @@ -789,7 +789,8 @@ G1RedirtyCardsQueueSet* rdcqs, G1ParScanThreadStateSet* pss); - void expand_heap_after_young_collection(); + void resize_heap_after_young_gc(); + // Update object copying statistics. void record_obj_copy_mem_stats(); @@ -1086,7 +1087,7 @@ inline void archive_set_add(HeapRegion* hr); - size_t non_young_capacity_bytes() { + size_t non_young_capacity_bytes() const { return (old_regions_count() + _archive_set.length() + humongous_regions_count()) * HeapRegion::GrainBytes; } @@ -1284,10 +1285,14 @@ // Print the maximum heap capacity. virtual size_t max_capacity() const; + virtual size_t min_capacity() const; // Return the size of reserved memory. Returns different value than max_capacity() when AllocateOldGenAt is used. virtual size_t max_reserved_capacity() const; + // Print the soft maximum heap capacity. + size_t soft_max_capacity() const; + virtual jlong millis_since_last_gc();