]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix another out of date comment in GC
authorAustin Clements <austin@google.com>
Fri, 20 Mar 2015 17:21:51 +0000 (13:21 -0400)
committerAustin Clements <austin@google.com>
Tue, 31 Mar 2015 01:05:31 +0000 (01:05 +0000)
gcDrain used to be passed a *workbuf to start draining from, but now
it takes a gcWork, which hides whether or not there's an initial
workbuf. Update the comment to match this.

Change-Id: I976b58e5bfebc451cfd4fa75e770113067b5cc07
Reviewed-on: https://go-review.googlesource.com/8246
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgcmark.go

index 8e0a88f0a3642bfc4812d5dcec92c5d5b3203dac..f6452ea133dae43dd68c2bf1ec1ffd0f1da87b3a 100644 (file)
@@ -335,7 +335,7 @@ func scanframeworker(frame *stkframe, unused unsafe.Pointer, gcw *gcWork) {
        }
 }
 
-// gcDrain scans objects in work buffers (starting with wbuf), blackening grey
+// gcDrain scans objects in work buffers, blackening grey
 // objects until all work buffers have been drained.
 //go:nowritebarrier
 func gcDrain(gcw *gcWork) {