runtime: fix comment mismatch for currentConsMark

This commit is contained in:
Revolution 2023-03-07 16:27:37 +08:00 committed by GitHub
parent 84609d874e
commit 9db7a90a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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()