]> Cypherpunks repositories - gostls13.git/commit
runtime: remove write barrier on G in sighandler
authorAustin Clements <austin@google.com>
Tue, 24 Mar 2015 15:51:24 +0000 (11:51 -0400)
committerAustin Clements <austin@google.com>
Thu, 26 Mar 2015 15:26:29 +0000 (15:26 +0000)
commit9b0ea6aa271c811abc180eb46a4d114890870ec5
treece8ecd018c7422fd48ae571c50d62bdb0fc5bb31
parent222f371118754382145735186fe3aedfca16d5f4
runtime: remove write barrier on G in sighandler

sighandler may run during a stop-the-world without a P, so it's not
allowed to have write barriers. Fix the G write to disable the write
barrier (this is safe because the G is reachable from allgs) and mark
the function nowritebarrier.

Change-Id: I907f05d3829e24eeb15fa4d020598af36710e87e
Reviewed-on: https://go-review.googlesource.com/8020
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/os3_plan9.go
src/runtime/signal_386.go
src/runtime/signal_amd64x.go
src/runtime/signal_arm.go
src/runtime/signal_arm64.go
src/runtime/signal_ppc64x.go