]> Cypherpunks repositories - gostls13.git/commit
runtime: factor waiting on mark phase
authorAustin Clements <austin@google.com>
Mon, 26 Mar 2018 21:44:05 +0000 (17:44 -0400)
committerAustin Clements <austin@google.com>
Fri, 6 Apr 2018 19:10:48 +0000 (19:10 +0000)
commitfcb7488add3fcaecce1270fad1590ba9c41be4a9
tree18188708a1fb9d306b4359068a0cf72ff3ad53a1
parentf4412aee749e9ca50e37427d169ce1a5543d7f6f
runtime: factor waiting on mark phase

There are three places where we wait for the GC mark phase to
complete. Factor these all into a single helper function.

Fixes #24362.

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