< prev index next >

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

Print this page
rev 57223 : imported patch 8225484-changes-to-survivor-calculation

@@ -117,10 +117,11 @@
          "Should not clear heap region %u in the collection set", hrm_index());
 
   clear_young_index_in_cset();
   clear_index_in_opt_cset();
   uninstall_surv_rate_group();
+  _survivor_bytes = 0;
   set_free();
   reset_pre_dummy_top();
 
   if (!keep_remset) {
     if (locked) {

@@ -249,10 +250,11 @@
 #ifdef ASSERT
   _containing_set(NULL),
 #endif
   _prev_top_at_mark_start(NULL), _next_top_at_mark_start(NULL),
   _prev_marked_bytes(0), _next_marked_bytes(0),
+  _survivor_bytes(0),
   _young_index_in_cset(-1),
   _surv_rate_group(NULL), _age_index(G1SurvRateGroup::InvalidAgeIndex), _gc_efficiency(0.0),
   _node_index(G1NUMA::UnknownNodeIndex)
 {
   assert(Universe::on_page_boundary(mr.start()) && Universe::on_page_boundary(mr.end()),
< prev index next >