--- old/src/hotspot/share/gc/shared/collectedHeap.hpp 2018-08-07 15:31:25.683887713 +0200 +++ new/src/hotspot/share/gc/shared/collectedHeap.hpp 2018-08-07 15:31:25.300875710 +0200 @@ -31,6 +31,7 @@ #include "runtime/handles.hpp" #include "runtime/perfData.hpp" #include "runtime/safepoint.hpp" +#include "services/memoryUsage.hpp" #include "utilities/debug.hpp" #include "utilities/events.hpp" #include "utilities/formatBuffer.hpp" @@ -423,6 +424,7 @@ // Return the SoftRefPolicy for the heap; virtual SoftRefPolicy* soft_ref_policy() = 0; + virtual MemoryUsage memory_usage(); virtual GrowableArray memory_managers() = 0; virtual GrowableArray memory_pools() = 0;