< prev index next >

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

Print this page
rev 51619 : [mq]: 8210265-crash-no-useperfdata

@@ -168,11 +168,13 @@
     pad_capacity(0) /* max_capacity */,
     pad_capacity(0) /* init_capacity */);
   // Given that this survivor space is not used, we update it here
   // once to reflect that its used space is 0 so that we don't have to
   // worry about updating it again later.
+  if (UsePerfData) {
   _from_space_counters->update_used(0);
+  }
 
   //  name "generation.0.space.2"
   // See _old_space_counters for additional counters
   _to_space_counters = new HSpaceCounters(young_collection_name_space,
     "s1", 2 /* ordinal */,
< prev index next >