src/hotspot/share/gc/cms/gSpaceCounters.hpp
Print this page
@@ -57,11 +57,11 @@
inline void update_capacity() {
_capacity->set_value(_gen->capacity());
}
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
// passed as a parameter. This method can can be used in cases were
// the utilization is already known and/or when the _gen->used()
@@ -101,10 +101,10 @@
public:
GenerationUsedHelper(Generation* g) : _gen(g) { }
inline jlong take_sample() {
- return _gen->used();
+ return _gen->used_stable();
}
};
#endif // SHARE_GC_CMS_GSPACECOUNTERS_HPP