]> Cypherpunks repositories - gostls13.git/commit
runtime: factor mark done transition
authorAustin Clements <austin@google.com>
Sun, 25 Oct 2015 01:30:59 +0000 (21:30 -0400)
committerAustin Clements <austin@google.com>
Thu, 5 Nov 2015 21:23:42 +0000 (21:23 +0000)
commit171204b5617b317250d54bd45750476f69ee33d8
tree66b1e8caa16d3d7b5ceb8b8c3af8aecae2ca84ce
parent12e23f05ff39e25193f554c5fa81eebd0b8dbb7d
runtime: factor mark done transition

Currently the code for completion of mark 1/mark 2 is duplicated in
background workers and assists. Factor this in to a single function
that will serve as the transition function for concurrent mark.

Change-Id: I4d9f697a15da0d349db3b34d56f3a220dd41d41b
Reviewed-on: https://go-review.googlesource.com/16359
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