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

changeset 9793
7386b3a385ac
parent 6198
55fb97c4c58d
child 9806
758c07667682
equal deleted inserted replaced
9792:9a7135d0a309 9793:7386b3a385ac
61 inline void update_capacity() { 61 inline void update_capacity() {
62 _capacity->set_value(_gen->capacity()); 62 _capacity->set_value(_gen->capacity());
63 } 63 }
64 64
65 inline void update_used() { 65 inline void update_used() {
66 _used->set_value(_gen->used()); 66 _used->set_value(_gen->used_stable());
67 } 67 }
68 68
69 // special version of update_used() to allow the used value to be 69 // special version of update_used() to allow the used value to be
70 // passed as a parameter. This method can can be used in cases were 70 // passed as a parameter. This method can can be used in cases were
71 // the utilization is already known and/or when the _gen->used() 71 // the utilization is already known and/or when the _gen->used()
105 105
106 public: 106 public:
107 GenerationUsedHelper(Generation* g) : _gen(g) { } 107 GenerationUsedHelper(Generation* g) : _gen(g) { }
108 108
109 inline jlong take_sample() { 109 inline jlong take_sample() {
110 return _gen->used(); 110 return _gen->used_stable();
111 } 111 }
112 }; 112 };
113 113
114 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GSPACECOUNTERS_HPP 114 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GSPACECOUNTERS_HPP

mercurial