--- old/src/hotspot/share/gc/g1/g1CollectedHeap.hpp 2018-10-30 10:41:08.445040585 +0100 +++ new/src/hotspot/share/gc/g1/g1CollectedHeap.hpp 2018-10-30 10:41:08.023027612 +0100 @@ -468,9 +468,6 @@ // Callback from VM_G1CollectFull operation, or collect_as_vm_thread. virtual void do_full_collection(bool clear_all_soft_refs); - // Resize the heap if necessary after a full collection. - void resize_if_necessary_after_full_collection(); - // Callback from VM_G1CollectForAllocation operation. // This function does everything necessary/possible to satisfy a // failed allocation request (including collection, expansion, etc.) @@ -528,6 +525,8 @@ return _g1mm; } + void resize_heap_if_necessary(); + // Expand the garbage-first heap by at least the given size (in bytes!). // Returns true if the heap was expanded by the requested amount; // false otherwise.