]> Cypherpunks repositories - gostls13.git/commit
runtime: clean up gcMarkDone
authorAustin Clements <austin@google.com>
Mon, 23 Nov 2015 16:37:12 +0000 (11:37 -0500)
committerAustin Clements <austin@google.com>
Mon, 23 Nov 2015 20:59:35 +0000 (20:59 +0000)
commitb89033399894776d677a4cecc82e2ac888fd7906
treef2bd28a7f5dc92f6cb72280b66814edbf671af54
parenta7c09ad4fb656ec662bc4df28fa224663873ebc8
runtime: clean up gcMarkDone

This improves the documentation comment on gcMarkDone, replaces a
recursive call with a simple goto, and disables preemption before
stopping the world in accordance with the documentation comment on
stopTheWorldWithSema.

Updates #13363, but, sadly, doesn't fix it.

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