diff -r 9a7135d0a309 -r 7386b3a385ac src/share/vm/gc_implementation/shared/gSpaceCounters.hpp --- a/src/share/vm/gc_implementation/shared/gSpaceCounters.hpp Tue Dec 17 05:07:06 2019 +0000 +++ b/src/share/vm/gc_implementation/shared/gSpaceCounters.hpp Tue Dec 17 05:26:57 2019 +0000 @@ -63,7 +63,7 @@ } inline void update_used() { - _used->set_value(_gen->used()); + _used->set_value(_gen->used_stable()); } // special version of update_used() to allow the used value to be @@ -107,7 +107,7 @@ GenerationUsedHelper(Generation* g) : _gen(g) { } inline jlong take_sample() { - return _gen->used(); + return _gen->used_stable(); } };