--- old/src/hotspot/share/gc/z/zDirector.cpp 2018-03-06 16:38:51.195364645 +0100 +++ new/src/hotspot/share/gc/z/zDirector.cpp 2018-03-06 16:38:51.037357866 +0100 @@ -124,7 +124,7 @@ // Calculate max duration of a GC cycle. The duration of GC is a moving // average, we add ~3.3 sigma to account for the GC duration variance. - const AbsSeq& duration_of_gc = ZStatCycle::duration(); + const AbsSeq& duration_of_gc = ZStatCycle::normalized_duration(); const double max_duration_of_gc = duration_of_gc.davg() + (duration_of_gc.dsd() * one_in_1000); // Calculate time until GC given the time until OOM and max duration of GC. @@ -167,7 +167,7 @@ const double assumed_throughput_drop_during_gc = 0.50; // 50% const double acceptable_throughput_drop = 0.01; // 1% - const AbsSeq& duration_of_gc = ZStatCycle::duration(); + const AbsSeq& duration_of_gc = ZStatCycle::normalized_duration(); const double max_duration_of_gc = duration_of_gc.davg() + (duration_of_gc.dsd() * one_in_1000); const double acceptable_gc_interval = max_duration_of_gc * ((assumed_throughput_drop_during_gc / acceptable_throughput_drop) - 1.0); const double time_until_gc = acceptable_gc_interval - time_since_last_gc;