]> Cypherpunks repositories - gostls13.git/commit
runtime: fix race that dropped GoSysExit events from trace
authorRuss Cox <rsc@golang.org>
Thu, 6 Aug 2015 17:44:37 +0000 (13:44 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 6 Aug 2015 19:29:09 +0000 (19:29 +0000)
commit26baed6af78fb5ec80b945ed11875e245403c7fd
tree1549cac0f80a0166b5cc2ebc031321a4d92894e2
parent5973558826c14baf4be28e438af608d397ea08dd
runtime: fix race that dropped GoSysExit events from trace

This makes TestTraceStressStartStop much less flaky.
Running under stress, it changes the failure rate from
above 1/100 to under 1/50000. That very unlikely
failure happens when an unexpected GoSysExit is
written. Not sure how that happens yet, but it is much
less important.

Fixes #11953.

Change-Id: I034671936334b4f3ab733614ef239aa121d20247
Reviewed-on: https://go-review.googlesource.com/13321
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/runtime/proc1.go