]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: fix comment mismatch for currentConsMark
authorRevolution <35791913+zzdpk2@users.noreply.github.com>
Tue, 7 Mar 2023 08:32:32 +0000 (08:32 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 7 Mar 2023 22:05:44 +0000 (22:05 +0000)
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 <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/mgcpacer.go

index 41b07d02a514417688c9a8b490187062ec76bd05..d2921f4ed3757e75acae4de8c58d845e69ed1deb 100644 (file)
@@ -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()