src/hotspot/share/gc/cms/gSpaceCounters.hpp
changeset 55539 734e58d8477b
parent 53244 9807daeb47c4
child 55557 657924d1e2ba
--- a/src/hotspot/share/gc/cms/gSpaceCounters.hpp	Mon Jul 01 08:24:45 2019 -0400
+++ b/src/hotspot/share/gc/cms/gSpaceCounters.hpp	Mon Jul 01 18:24:06 2019 +0000
@@ -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();
     }
 };