Currently the method G1CollectorPolicy::update_young_list_target_length almost entirely consists of pure calculations and then updates G1CollectorPolicy::_young_list_target_length. The method should be split into a pure part that calculates the value that G1CollectorPolicy::update_young_list_target_length just calls.