< prev index next >
src/hotspot/share/gc/parallel/psGCAdaptivePolicyCounters.hpp
Print this page
rev 53341 : 8212206: Refactor AdaptiveSizePolicy to separate out code related to GC overhead
Summary: Move check_gc_overhead_limit() and related code to its own class
Reviewed-by:
@@ -49,11 +49,10 @@
PerfVariable* _avg_major_pause;
PerfVariable* _avg_major_interval;
PerfVariable* _live_space;
PerfVariable* _free_space;
PerfVariable* _avg_base_footprint;
- PerfVariable* _gc_overhead_limit_exceeded_counter;
PerfVariable* _live_at_last_full_gc_counter;
PerfVariable* _old_capacity;
PerfVariable* _boundary_moved;
PerfVariable* _change_old_gen_for_min_pauses;
@@ -175,11 +174,11 @@
_major_pause_young_slope->set_value(
(jlong)(ps_size_policy()->major_pause_young_slope() * 1000)
);
}
inline void update_gc_overhead_limit_exceeded_counter() {
- _gc_overhead_limit_exceeded_counter->set_value(
+ gc_overhead_limit_exceeded_counter()->set_value(
(jlong) ps_size_policy()->gc_overhead_limit_exceeded());
}
inline void update_live_at_last_full_gc_counter() {
_live_at_last_full_gc_counter->set_value(
(jlong)(ps_size_policy()->live_at_last_full_gc()));
< prev index next >