]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix out-of-date comment on gcWork usage
authorAustin Clements <austin@google.com>
Thu, 24 Sep 2015 18:24:32 +0000 (14:24 -0400)
committerAustin Clements <austin@google.com>
Fri, 2 Oct 2015 19:55:34 +0000 (19:55 +0000)
Change-Id: I3c21ffa80a5c14911e07238b1f64bec686ed7b72
Reviewed-on: https://go-review.googlesource.com/14980
Reviewed-by: Minux Ma <minux@golang.org>
src/runtime/mgcwork.go

index b18eaafba80ead105e5b6a1e1217b52b86ffa2a3..9c363c6703385b24d02fd3fc15db01db2d8a63a9 100644 (file)
@@ -51,7 +51,7 @@ func (wp wbufptr) ptr() *workbuf {
 //     (preemption must be disabled)
 //     gcw := &getg().m.p.ptr().gcw
 //     .. call gcw.put() to produce and gcw.get() to consume ..
-//     if gcphase == _GCmarktermination {
+//     if gcBlackenPromptly {
 //         gcw.dispose()
 //     }
 //