]> Cypherpunks repositories - gostls13.git/commit
runtime: generalize work.finalizersDone to work.markrootDone
authorAustin Clements <austin@google.com>
Mon, 15 Feb 2016 23:24:06 +0000 (18:24 -0500)
committerAustin Clements <austin@google.com>
Wed, 16 Mar 2016 20:13:22 +0000 (20:13 +0000)
commitc14d25c648c5269c9752708dcb36052de62298fd
tree4e2df082b7cfa97fcf2bb1742f4aac5ffcc2f957
parent276b1777717ec5a0a02364a5aee806f8076bb60b
runtime: generalize work.finalizersDone to work.markrootDone

We're about to add another root marking job that needs to happen only
during the first markroot pass (whether that's concurrent or STW),
just like finalizer scanning. Rather than introducing another flag
that has the same value as finalizersDone, just rename finalizersDone
to markrootDone.

Change-Id: I535356c6ea1f3734cb5b6add264cb7bf48de95e8
Reviewed-on: https://go-review.googlesource.com/20043
Reviewed-by: Rick Hudson <rlh@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/mgc.go
src/runtime/mgcmark.go