]> Cypherpunks repositories - gostls13.git/commit
runtime: make test for freezetheworld more precise
authorAustin Clements <austin@google.com>
Fri, 27 Mar 2015 20:11:11 +0000 (16:11 -0400)
committerAustin Clements <austin@google.com>
Fri, 10 Apr 2015 18:02:55 +0000 (18:02 +0000)
commit7c37249639a1454c7e8958c4760cc906d18cba2e
tree1347ceed98a92c39e0c1d749ff10b9854769dff4
parent253ad67b3458ca640bc3d56a278b94b0823fec59
runtime: make test for freezetheworld more precise

exitsyscallfast checks for freezetheworld, but does so only by
checking if stopwait is positive. This can also happen during
stoptheworld, which is harmless, but confusing. Shortly, it will be
important that we get to the p.status cas even if stopwait is set.

Hence, make this test more specific so it only triggers with
freezetheworld and not other uses of stopwait.

Change-Id: Ibb722cd8360c3ed5a9654482519e3ceb87a8274d
Reviewed-on: https://go-review.googlesource.com/8205
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/proc1.go