diff -r 1807da9ad196 -r fe95464806a7 src/hotspot/share/gc/g1/g1Allocator.hpp --- a/src/hotspot/share/gc/g1/g1Allocator.hpp Wed Feb 20 08:10:40 2019 -0500 +++ b/src/hotspot/share/gc/g1/g1Allocator.hpp Wed Feb 20 14:30:33 2019 +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