]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix comment for assistRatio
authorAustin Clements <austin@google.com>
Sun, 4 Oct 2015 23:28:42 +0000 (19:28 -0400)
committerAustin Clements <austin@google.com>
Fri, 9 Oct 2015 19:37:23 +0000 (19:37 +0000)
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 <rsc@golang.org>
src/runtime/mgc.go

index b95289aaa6ff92d810fff899d5f73ec6d520109e..b664d6954824fec3687cae38bbdb4023d4bbc443 100644 (file)
@@ -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.