Commit bef356b2 authored by Austin Clements's avatar Austin Clements

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/7700Reviewed-by: default avatarRick Hudson <rlh@golang.org>
parent d21cef1f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment