From 3e57b17dc3e490a773570b49897876ea198c24fb Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Sun, 4 Oct 2015 19:28:42 -0400 Subject: [PATCH] runtime: fix comment for assistRatio The comment for assistRatio claimed it to be the reciprocal of what it actually is. Change-Id: If7f9bb853d75d0097facff3aa6704b224d9108b8 Reviewed-on: https://go-review.googlesource.com/15402 Reviewed-by: Russ Cox --- src/runtime/mgc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index b95289aaa6..b664d69548 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -351,7 +351,7 @@ type gcControllerState struct { // dedicated mark workers get started. dedicatedMarkWorkersNeeded int64 - // assistRatio is the ratio of allocated bytes to scan work + // assistRatio is the ratio of scan work to allocated bytes // that should be performed by mutator assists. This is // computed at the beginning of each cycle and updated every // time heap_scan is updated. -- 2.50.0