src/hotspot/share/gc/cms/gSpaceCounters.hpp
Print this page
*** 57,67 ****
inline void update_capacity() {
_capacity->set_value(_gen->capacity());
}
inline void update_used() {
! _used->set_value(_gen->used());
}
// 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()
--- 57,67 ----
inline void update_capacity() {
_capacity->set_value(_gen->capacity());
}
inline void update_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,110 ****
public:
GenerationUsedHelper(Generation* g) : _gen(g) { }
inline jlong take_sample() {
! return _gen->used();
}
};
#endif // SHARE_GC_CMS_GSPACECOUNTERS_HPP
--- 101,110 ----
public:
GenerationUsedHelper(Generation* g) : _gen(g) { }
inline jlong take_sample() {
! return _gen->used_stable();
}
};
#endif // SHARE_GC_CMS_GSPACECOUNTERS_HPP