From: Austin Clements Date: Tue, 17 Mar 2015 19:31:11 +0000 (-0400) Subject: runtime: improve comment in concurrent GC X-Git-Tag: go1.5beta1~1521 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bef356b28281b8ff4a585d857a881783926cabb1;p=gostls13.git runtime: improve comment in concurrent GC "Sync" is not very informative. What's being synchronized and with whom? Update this comment to explain what we're really doing: enabling write barriers. Change-Id: I4f0cbb8771988c7ba4606d566b77c26c64165f0f Reviewed-on: https://go-review.googlesource.com/7700 Reviewed-by: Rick Hudson --- diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index 0b15a8500d..d19606bba7 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -333,7 +333,7 @@ func gc(mode int) { gcscan_m() gctimer.cycle.installmarkwb = nanotime() - // Sync. + // Enter mark phase and enable write barriers. stoptheworld() gcphase = _GCmark