]> Cypherpunks repositories - gostls13.git/commit
runtime: fix races in stack scan
authorRuss Cox <rsc@golang.org>
Tue, 16 Jun 2015 23:20:18 +0000 (19:20 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 17 Jun 2015 17:56:26 +0000 (17:56 +0000)
commit3c60e6e8cfc6da21fc12aadaff63d780310ba822
tree0b56ec54c87cb786c8a296ff75d0952c4f5452bb
parenta2aaede366f9bf6d48e6e42be0a86a843f570097
runtime: fix races in stack scan

This fixes a hang during runtime.TestTraceStress.
It also fixes double-scan of stacks, which leads to
stack barrier installation failures.

Both of these have shown up as flaky failures on the dashboard.

Fixes #10941.

Change-Id: Ia2a5991ce2c9f43ba06ae1c7032f7c898dc990e0
Reviewed-on: https://go-review.googlesource.com/11089
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mgc.go
src/runtime/mgcmark.go
src/runtime/proc1.go
src/runtime/runtime2.go
src/runtime/stack1.go