changeset 9101:d6c2fafabfb4

8138972: G1CollectorPolicy::_max_survivor_regions should be intialized in the initializer list Reviewed-by: jwilhelm, mgerdin
author ehelin
date Fri, 09 Oct 2015 15:48:30 +0200
parents f39faaf2ca61
children abd2f07dc9fa 2ecdb2c2d9be
files src/share/vm/gc/g1/g1CollectorPolicy.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc/g1/g1CollectorPolicy.cpp	Fri Oct 09 08:46:44 2015 +0000
+++ b/src/share/vm/gc/g1/g1CollectorPolicy.cpp	Fri Oct 09 15:48:30 2015 +0200
@@ -113,6 +113,7 @@
 
   _recent_avg_pause_time_ratio(0.0),
   _rs_lengths_prediction(0),
+  _max_survivor_regions(0),
 
   _eden_used_bytes_before_gc(0),
   _survivor_used_bytes_before_gc(0),
@@ -265,9 +266,6 @@
   _concurrent_mark_remark_times_ms->add(0.05);
   _concurrent_mark_cleanup_times_ms->add(0.20);
   _tenuring_threshold = MaxTenuringThreshold;
-  // _max_survivor_regions will be calculated by
-  // update_young_list_target_length() during initialization.
-  _max_survivor_regions = 0;
 
   assert(GCTimeRatio > 0,
          "we should have set it to a default value set_g1_gc_flags() "