178 }
179 inline void update_gc_overhead_limit_exceeded_counter() {
180 _gc_overhead_limit_exceeded_counter->set_value(
181 (jlong) ps_size_policy()->gc_overhead_limit_exceeded());
182 }
183 inline void update_live_at_last_full_gc_counter() {
184 _live_at_last_full_gc_counter->set_value(
185 (jlong)(ps_size_policy()->live_at_last_full_gc()));
186 }
187
188 inline void update_scavenge_skipped(int cause) {
189 _scavenge_skipped->set_value(cause);
190 }
191
192 inline void update_full_follows_scavenge(int event) {
193 _full_follows_scavenge->set_value(event);
194 }
195
196 // Update all the counters that can be updated from the size policy.
197 // This should be called after all policy changes have been made
198 // and reflected internall in the size policy.
199 void update_counters_from_policy();
200
201 // Update counters that can be updated from fields internal to the
202 // counter or from globals. This is distinguished from counters
203 // that are updated via input parameters.
204 void update_counters();
205
206 virtual GCPolicyCounters::Name kind() const {
207 return GCPolicyCounters::PSGCAdaptivePolicyCountersKind;
208 }
209 };
210
211 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSGCADAPTIVEPOLICYCOUNTERS_HPP
|
178 }
179 inline void update_gc_overhead_limit_exceeded_counter() {
180 _gc_overhead_limit_exceeded_counter->set_value(
181 (jlong) ps_size_policy()->gc_overhead_limit_exceeded());
182 }
183 inline void update_live_at_last_full_gc_counter() {
184 _live_at_last_full_gc_counter->set_value(
185 (jlong)(ps_size_policy()->live_at_last_full_gc()));
186 }
187
188 inline void update_scavenge_skipped(int cause) {
189 _scavenge_skipped->set_value(cause);
190 }
191
192 inline void update_full_follows_scavenge(int event) {
193 _full_follows_scavenge->set_value(event);
194 }
195
196 // Update all the counters that can be updated from the size policy.
197 // This should be called after all policy changes have been made
198 // and reflected internally in the size policy.
199 void update_counters_from_policy();
200
201 // Update counters that can be updated from fields internal to the
202 // counter or from globals. This is distinguished from counters
203 // that are updated via input parameters.
204 void update_counters();
205
206 virtual GCPolicyCounters::Name kind() const {
207 return GCPolicyCounters::PSGCAdaptivePolicyCountersKind;
208 }
209 };
210
211 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSGCADAPTIVEPOLICYCOUNTERS_HPP
|