src/share/vm/gc_implementation/shared/gSpaceCounters.hpp

changeset 9793
7386b3a385ac
parent 6198
55fb97c4c58d
child 9806
758c07667682
     1.1 --- a/src/share/vm/gc_implementation/shared/gSpaceCounters.hpp	Tue Dec 17 05:07:06 2019 +0000
     1.2 +++ b/src/share/vm/gc_implementation/shared/gSpaceCounters.hpp	Tue Dec 17 05:26:57 2019 +0000
     1.3 @@ -63,7 +63,7 @@
     1.4    }
     1.5  
     1.6    inline void update_used() {
     1.7 -    _used->set_value(_gen->used());
     1.8 +    _used->set_value(_gen->used_stable());
     1.9    }
    1.10  
    1.11    // special version of update_used() to allow the used value to be
    1.12 @@ -107,7 +107,7 @@
    1.13      GenerationUsedHelper(Generation* g) : _gen(g) { }
    1.14  
    1.15      inline jlong take_sample() {
    1.16 -      return _gen->used();
    1.17 +      return _gen->used_stable();
    1.18      }
    1.19  };
    1.20  

mercurial