From bef356b28281b8ff4a585d857a881783926cabb1 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Tue, 17 Mar 2015 15:31:11 -0400 Subject: [PATCH] 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 --- src/runtime/mgc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1