]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix comment for gcAssistAlloc
authorAustin Clements <austin@google.com>
Mon, 5 Oct 2015 01:34:27 +0000 (21:34 -0400)
committerAustin Clements <austin@google.com>
Fri, 9 Oct 2015 19:37:41 +0000 (19:37 +0000)
Change-Id: I312e56e95d8ef8ae036d16444ab1e2df1285845d
Reviewed-on: https://go-review.googlesource.com/15403
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgcmark.go

index cdcca5797cf5bcb2511d8526e10bfa5dbbb7d711..261788c9d8934834ba7398779c2681a0027d9882 100644 (file)
@@ -202,7 +202,7 @@ func markrootSpans(gcw *gcWork, shard int) {
 // allowAssist is true, may assist GC scanning in proportion to the
 // allocations performed by this mutator since the last assist.
 //
-// It should only be called if gcAssistAlloc != 0.
+// It should only be called if gcBlackenEnabled != 0.
 //
 // This must be called with preemption disabled.
 //go:nowritebarrier