1.1 --- a/src/share/vm/memory/generation.hpp Tue Dec 17 05:07:06 2019 +0000 1.2 +++ b/src/share/vm/memory/generation.hpp Tue Dec 17 05:26:57 2019 +0000 1.3 @@ -168,6 +168,7 @@ 1.4 virtual size_t capacity() const = 0; // The maximum number of object bytes the 1.5 // generation can currently hold. 1.6 virtual size_t used() const = 0; // The number of used bytes in the gen. 1.7 + virtual size_t used_stable() const; // The number of used bytes for memory monitoring tools. 1.8 virtual size_t free() const = 0; // The number of free bytes in the gen. 1.9 1.10 // Support for java.lang.Runtime.maxMemory(); see CollectedHeap.