src/share/vm/gc_implementation/parallelScavenge/psGCAdaptivePolicyCounters.cpp

changeset 1822
0bfd3fb24150
parent 1499
473cce303f13
child 1907
c18cbe5936b8
     1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/psGCAdaptivePolicyCounters.cpp	Fri Apr 09 13:08:34 2010 -0400
     1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/psGCAdaptivePolicyCounters.cpp	Tue Apr 13 13:52:10 2010 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright 2003-2006 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 @@ -117,11 +117,13 @@
    1.11        PerfData::U_Bytes, (jlong) ps_size_policy()->avg_base_footprint()->average(), CHECK);
    1.12  
    1.13      cname = PerfDataManager::counter_name(name_space(), "gcTimeLimitExceeded");
    1.14 -    _gc_time_limit_exceeded = PerfDataManager::create_variable(SUN_GC, cname,
    1.15 -      PerfData::U_Events, ps_size_policy()->gc_time_limit_exceeded(), CHECK);
    1.16 +    _gc_overhead_limit_exceeded_counter =
    1.17 +      PerfDataManager::create_variable(SUN_GC, cname,
    1.18 +      PerfData::U_Events, ps_size_policy()->gc_overhead_limit_exceeded(), CHECK);
    1.19  
    1.20      cname = PerfDataManager::counter_name(name_space(), "liveAtLastFullGc");
    1.21 -    _live_at_last_full_gc = PerfDataManager::create_variable(SUN_GC, cname,
    1.22 +    _live_at_last_full_gc_counter =
    1.23 +      PerfDataManager::create_variable(SUN_GC, cname,
    1.24        PerfData::U_Bytes, ps_size_policy()->live_at_last_full_gc(), CHECK);
    1.25  
    1.26      cname = PerfDataManager::counter_name(name_space(), "majorPauseOldSlope");
    1.27 @@ -189,6 +191,8 @@
    1.28      update_minor_pause_old_slope();
    1.29      update_major_pause_young_slope();
    1.30      update_minor_collection_slope_counter();
    1.31 +    update_gc_overhead_limit_exceeded_counter();
    1.32 +    update_live_at_last_full_gc_counter();
    1.33    }
    1.34  }
    1.35  

mercurial