1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Thu Aug 01 03:44:03 2019 +0100 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Mon Aug 12 18:30:40 2019 +0300 1.3 @@ -839,11 +839,11 @@ 1.4 _stop_world_start = os::elapsedTime(); 1.5 } 1.6 1.7 -void G1CollectorPolicy::record_collection_pause_start(double start_time_sec) { 1.8 +void G1CollectorPolicy::record_collection_pause_start(double start_time_sec, GCTracer &tracer) { 1.9 // We only need to do this here as the policy will only be applied 1.10 // to the GC we're about to start. so, no point is calculating this 1.11 // every time we calculate / recalculate the target young length. 1.12 - update_survivors_policy(); 1.13 + update_survivors_policy(tracer); 1.14 1.15 assert(_g1->used() == _g1->recalculate_used(), 1.16 err_msg("sanity, used: " SIZE_FORMAT " recalculate_used: " SIZE_FORMAT, 1.17 @@ -1453,7 +1453,7 @@ 1.18 } 1.19 1.20 // Calculates survivor space parameters. 1.21 -void G1CollectorPolicy::update_survivors_policy() { 1.22 +void G1CollectorPolicy::update_survivors_policy(GCTracer &tracer) { 1.23 double max_survivor_regions_d = 1.24 (double) _young_list_target_length / (double) SurvivorRatio; 1.25 // We use ceiling so that if max_survivor_regions_d is > 0.0 (but 1.26 @@ -1461,7 +1461,7 @@ 1.27 _max_survivor_regions = (uint) ceil(max_survivor_regions_d); 1.28 1.29 _tenuring_threshold = _survivors_age_table.compute_tenuring_threshold( 1.30 - HeapRegion::GrainWords * _max_survivor_regions); 1.31 + HeapRegion::GrainWords * _max_survivor_regions, tracer); 1.32 } 1.33 1.34 bool G1CollectorPolicy::force_initial_mark_if_outside_cycle(