< prev index next >

src/share/vm/gc/g1/g1MonitoringSupport.cpp

Print this page

        

@@ -74,10 +74,11 @@
 
 G1MonitoringSupport::G1MonitoringSupport(G1CollectedHeap* g1h) :
   _g1h(g1h),
   _incremental_collection_counters(NULL),
   _full_collection_counters(NULL),
+  _conc_collection_counters(NULL),
   _old_collection_counters(NULL),
   _old_space_counters(NULL),
   _young_collection_counters(NULL),
   _eden_counters(NULL),
   _from_counters(NULL),

@@ -102,10 +103,13 @@
     new CollectorCounters("G1 incremental collections", 0);
   //   name "collector.1".  In a generational collector this would be the
   // old generation collection.
   _full_collection_counters =
     new CollectorCounters("G1 stop-the-world full collections", 1);
+  // name "collector.2". STW phases as part of a concurrent collection.
+  _conc_collection_counters =
+    new CollectorCounters("G1 stop-the-world phases", 2);
 
   // timer sampling for all counters supporting sampling only update the
   // used value.  See the take_sample() method.  G1 requires both used and
   // capacity updated so sampling is not currently used.  It might
   // be sufficient to update all counters in take_sample() even though
< prev index next >