1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/psGCAdaptivePolicyCounters.hpp Fri Apr 09 13:08:34 2010 -0400 1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/psGCAdaptivePolicyCounters.hpp Tue Apr 13 13:52:10 2010 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 2003-2010 Sun Microsystems, Inc. All Rights Reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -44,8 +44,8 @@ 1.11 PerfVariable* _live_space; 1.12 PerfVariable* _free_space; 1.13 PerfVariable* _avg_base_footprint; 1.14 - PerfVariable* _gc_time_limit_exceeded; 1.15 - PerfVariable* _live_at_last_full_gc; 1.16 + PerfVariable* _gc_overhead_limit_exceeded_counter; 1.17 + PerfVariable* _live_at_last_full_gc_counter; 1.18 PerfVariable* _old_capacity; 1.19 PerfVariable* _boundary_moved; 1.20 1.21 @@ -169,6 +169,14 @@ 1.22 (jlong)(ps_size_policy()->major_pause_young_slope() * 1000) 1.23 ); 1.24 } 1.25 + inline void update_gc_overhead_limit_exceeded_counter() { 1.26 + _gc_overhead_limit_exceeded_counter->set_value( 1.27 + (jlong) ps_size_policy()->gc_overhead_limit_exceeded()); 1.28 + } 1.29 + inline void update_live_at_last_full_gc_counter() { 1.30 + _live_at_last_full_gc_counter->set_value( 1.31 + (jlong)(ps_size_policy()->live_at_last_full_gc())); 1.32 + } 1.33 1.34 inline void update_scavenge_skipped(int cause) { 1.35 _scavenge_skipped->set_value(cause);