• Austin Clements's avatar
    runtime: remove stack barriers during sweep · 9f263c14
    Austin Clements authored
    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/20668Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    9f263c14
mstkbar.go 13.6 KB