--- old/src/hotspot/share/gc/g1/g1Allocator.hpp 2019-02-20 10:41:27.290311924 +0100 +++ new/src/hotspot/share/gc/g1/g1Allocator.hpp 2019-02-20 10:41:27.028303920 +0100 @@ -155,7 +155,8 @@ public: G1PLABAllocator(G1Allocator* allocator); - void waste(size_t& wasted, size_t& undo_wasted); + size_t waste() const; + size_t undo_waste() const; // Allocate word_sz words in dest, either directly into the regions or by // allocating a new PLAB. Returns the address of the allocated memory, NULL if