mirror of https://github.com/golang/go.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 <rlh@golang.org>
This commit is contained in:
parent
d21cef1f8f
commit
bef356b282
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue