From 600b982df992c38186ae43bd664ab58cd7042490 Mon Sep 17 00:00:00 2001 From: Revolution <35791913+zzdpk2@users.noreply.github.com> Date: Tue, 7 Mar 2023 08:32:32 +0000 Subject: [PATCH] runtime: fix comment mismatch for currentConsMark Change-Id: Ie0ed83e17be180100f144ce61bbd2c72a64d857b GitHub-Last-Rev: 9db7a90a951c0fa9d18697fa93ae14267ab9b385 GitHub-Pull-Request: golang/go#58910 Reviewed-on: https://go-review.googlesource.com/c/go/+/473820 Run-TryBot: Michael Knyszek TryBot-Result: Gopher Robot Reviewed-by: Carlos Amedee Auto-Submit: Michael Knyszek Reviewed-by: Michael Knyszek --- src/runtime/mgcpacer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/mgcpacer.go b/src/runtime/mgcpacer.go index 41b07d02a5..d2921f4ed3 100644 --- a/src/runtime/mgcpacer.go +++ b/src/runtime/mgcpacer.go @@ -645,7 +645,7 @@ func (c *gcControllerState) endCycle(now int64, procs int, userForced bool) { // // So this calculation is really: // (heapLive-trigger) / (assistDuration * procs * (1-utilization)) / - // (scanWork) / (assistDuration * procs * (utilization+idleUtilization) + // (scanWork) / (assistDuration * procs * (utilization+idleUtilization)) // // Note that because we only care about the ratio, assistDuration and procs cancel out. scanWork := c.heapScanWork.Load() + c.stackScanWork.Load() + c.globalsScanWork.Load() -- 2.48.1