From 181483b90bcc7d4e44109a14213d4ee2804f7f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20=C3=96sterlund?= Date: Wed, 4 Aug 2021 10:28:47 +0000 Subject: [PATCH] 8271064: ZGC several jvm08 perf regressions after JDK-8268372 Reviewed-by: ayang, pliden, tschatzl --- src/hotspot/share/gc/z/zDirector.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hotspot/share/gc/z/zDirector.cpp b/src/hotspot/share/gc/z/zDirector.cpp index 3028bb616fb..a9668a6a77f 100644 --- a/src/hotspot/share/gc/z/zDirector.cpp +++ b/src/hotspot/share/gc/z/zDirector.cpp @@ -212,8 +212,7 @@ ZDriverRequest rule_allocation_rate_dynamic() { // Calculate time until GC given the time until OOM and GC duration. // We also subtract the sample interval, so that we don't overshoot the // target time and end up starting the GC too late in the next interval. - const double more_safety_for_fewer_workers = (ConcGCThreads - actual_gc_workers) * sample_interval; - const double time_until_gc = time_until_oom - actual_gc_duration - sample_interval - more_safety_for_fewer_workers; + const double time_until_gc = time_until_oom - actual_gc_duration - sample_interval; log_debug(gc, director)("Rule: Allocation Rate (Dynamic GC Workers), " "MaxAllocRate: %.1fMB/s (+/-%.1f%%), Free: " SIZE_FORMAT "MB, GCCPUTime: %.3f, "