]> Cypherpunks repositories - gostls13.git/commit
runtime: remove stack barriers during sweep
authorAustin Clements <austin@google.com>
Wed, 2 Mar 2016 22:55:45 +0000 (17:55 -0500)
committerAustin Clements <austin@google.com>
Tue, 26 Apr 2016 23:40:04 +0000 (23:40 +0000)
commit9f263c14edccb564b675ed6c4f12260f333505d5
tree689373b80e0a501ae36c586de6052a74877a441d
parent269c969c81774d1579e80a8c35edbd0ebea065a7
runtime: remove stack barriers during sweep

This adds a best-effort pass to remove stack barriers immediately
after the end of mark termination. This isn't necessary for the Go
runtime, but should help external tools that perform stack walks but
aren't aware of Go's stack barriers such as GDB, perf, and VTune.
(Though clearly they'll still have trouble unwinding stacks during
mark.)

Change-Id: I66600fae1f03ee36b5459d2b00dcc376269af18e
Reviewed-on: https://go-review.googlesource.com/20668
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
src/runtime/mstkbar.go