--- old/src/hotspot/share/gc/g1/g1Policy.cpp 2019-11-21 15:05:53.794706151 +0100 +++ new/src/hotspot/share/gc/g1/g1Policy.cpp 2019-11-21 15:05:53.433694978 +0100 @@ -62,8 +62,8 @@ _young_list_target_length(0), _young_list_fixed_length(0), _young_list_max_length(0), - _eden_surv_rate_group(new SurvRateGroup()), - _survivor_surv_rate_group(new SurvRateGroup()), + _eden_surv_rate_group(new G1SurvRateGroup()), + _survivor_surv_rate_group(new G1SurvRateGroup()), _reserve_factor((double) G1ReservePercent / 100.0), _reserve_regions(0), _young_gen_sizer(G1YoungGenSizer::create_gen_sizer()), @@ -460,7 +460,6 @@ // also call this on any additional surv rate groups _free_regions_at_end_of_collection = _g1h->num_free_regions(); - // Reset survivors SurvRateGroup. _survivor_surv_rate_group->reset(); update_young_list_max_and_target_length(); update_rs_length_prediction(); @@ -1391,8 +1390,6 @@ } void G1Policy::transfer_survivors_to_cset(const G1SurvivorRegions* survivors) { - - // Add survivor regions to SurvRateGroup. note_start_adding_survivor_regions(); HeapRegion* last = NULL;