--- old/src/hotspot/share/gc/cms/gSpaceCounters.hpp Fri Jun 21 17:34:11 2019 +++ new/src/hotspot/share/gc/cms/gSpaceCounters.hpp Fri Jun 21 17:34:11 2019 @@ -59,7 +59,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 @@ -103,7 +103,7 @@ GenerationUsedHelper(Generation* g) : _gen(g) { } inline jlong take_sample() { - return _gen->used(); + return _gen->used_stable(); } };