diff options
| author | Austin Clements <austin@google.com> | 2015-03-20 13:21:51 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2015-03-31 01:05:31 +0000 |
| commit | a4374c1de1d4fd924a11e055ca55efde11b258da (patch) | |
| tree | 3dc244a35da8117851779cd2862051baa525a579 /src/runtime | |
| parent | 6262192cd0fb98d6bb80752de70ae33fc10dc33e (diff) | |
| download | go-a4374c1de1d4fd924a11e055ca55efde11b258da.tar.xz | |
runtime: fix another out of date comment in GC
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>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/mgcmark.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mgcmark.go b/src/runtime/mgcmark.go index 8e0a88f0a3..f6452ea133 100644 --- a/src/runtime/mgcmark.go +++ b/src/runtime/mgcmark.go @@ -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) { |
