diff -r d79e47b2d2d9 -r b17e445924da hotspot/src/share/vm/gc/g1/g1DefaultPolicy.cpp --- a/hotspot/src/share/vm/gc/g1/g1DefaultPolicy.cpp Mon Jul 18 14:20:30 2016 -0700 +++ b/hotspot/src/share/vm/gc/g1/g1DefaultPolicy.cpp Tue Jul 19 10:31:41 2016 +0200 @@ -501,13 +501,12 @@ double G1DefaultPolicy::young_other_time_ms() const { return phase_times()->young_cset_choice_time_ms() + - phase_times()->young_free_cset_time_ms(); + phase_times()->average_time_ms(G1GCPhaseTimes::YoungFreeCSet); } double G1DefaultPolicy::non_young_other_time_ms() const { return phase_times()->non_young_cset_choice_time_ms() + - phase_times()->non_young_free_cset_time_ms(); - + phase_times()->average_time_ms(G1GCPhaseTimes::NonYoungFreeCSet); } double G1DefaultPolicy::other_time_ms(double pause_time_ms) const { @@ -515,7 +514,7 @@ } double G1DefaultPolicy::constant_other_time_ms(double pause_time_ms) const { - return other_time_ms(pause_time_ms) - young_other_time_ms() - non_young_other_time_ms(); + return other_time_ms(pause_time_ms) - phase_times()->total_free_cset_time_ms(); } CollectionSetChooser* G1DefaultPolicy::cset_chooser() const {