8138972: G1CollectorPolicy::_max_survivor_regions should be intialized in the initializer list
Reviewed-by: jwilhelm, mgerdin
--- a/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.cpp Fri Oct 09 08:46:44 2015 +0000
+++ b/hotspot/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() "