]> Cypherpunks repositories - gostls13.git/commit
runtime: consolidate gcDrain and gcDrainUntilPreempt
authorAustin Clements <austin@google.com>
Mon, 5 Oct 2015 02:42:43 +0000 (22:42 -0400)
committerAustin Clements <austin@google.com>
Fri, 9 Oct 2015 19:38:03 +0000 (19:38 +0000)
commit9b3cdaf0a3bd179a5459312112ef115866b09985
tree5e6bbf864a13026ff29306eeda2eb743bd2907f1
parent39ed682206332cf0ab557b715ec80c9ab2cbba5f
runtime: consolidate gcDrain and gcDrainUntilPreempt

These functions were nearly identical. Consolidate them by adding a
flags argument. In addition to cleaning up this code, this makes
further changes that affect both functions easier.

Change-Id: I6ec5c947603bbbd3ff4040113b2fbc240e99745f
Reviewed-on: https://go-review.googlesource.com/15405
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go
src/runtime/mgcmark.go