Commit 244efebe authored by Austin Clements's avatar Austin Clements

runtime: fix out of date comments

The transition from mark 1 to mark 2 no longer enqueues new root
marking jobs, but some of the comments still refer to this. Fix these
comments.

Change-Id: I3f98628dba32c5afe30495ab495da42b32291e9e
Reviewed-on: https://go-review.googlesource.com/24965Reviewed-by: default avatarRick Hudson <rlh@golang.org>
parent 8ad70a54
...@@ -1073,9 +1073,8 @@ top: ...@@ -1073,9 +1073,8 @@ top:
// Transition from mark 1 to mark 2. // Transition from mark 1 to mark 2.
// //
// The global work list is empty, but there can still be work // The global work list is empty, but there can still be work
// sitting in the per-P work caches and there can be more // sitting in the per-P work caches.
// objects reachable from global roots since they don't have write // Flush and disable work caches.
// barriers. Rescan some roots and flush work caches.
gcMarkRootCheck() gcMarkRootCheck()
...@@ -1095,8 +1094,7 @@ top: ...@@ -1095,8 +1094,7 @@ top:
// ensure all Ps see gcBlackenPromptly. This // ensure all Ps see gcBlackenPromptly. This
// also blocks until any remaining mark 1 // also blocks until any remaining mark 1
// workers have exited their loop so we can // workers have exited their loop so we can
// start new mark 2 workers that will observe // start new mark 2 workers.
// the new root marking jobs.
forEachP(func(_p_ *p) { forEachP(func(_p_ *p) {
_p_.gcw.dispose() _p_.gcw.dispose()
}) })
......
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