aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sigqueue.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-01-07 20:28:04 -0800
committerIan Lance Taylor <iant@golang.org>2016-01-08 17:26:28 +0000
commit84a95be922f09ea6b2235da0f67bf7ba490d092a (patch)
treedf2aac4447073f3b7ca2ba278e16b8f4ede6e8cb /src/runtime/sigqueue.go
parenta120beaa8db6b723c120c8d3bf3324dfa503cb2d (diff)
downloadgo-84a95be922f09ea6b2235da0f67bf7ba490d092a.tar.xz
runtime: add nowritebarrierrec to funcs called at signal time
Also nosplit where needed. Change-Id: I1e3f6f8f76df9ee7e87ed1b8560cef145928314c Reviewed-on: https://go-review.googlesource.com/18395 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/sigqueue.go')
-rw-r--r--src/runtime/sigqueue.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/sigqueue.go b/src/runtime/sigqueue.go
index 84616ebceb..546d3abb24 100644
--- a/src/runtime/sigqueue.go
+++ b/src/runtime/sigqueue.go
@@ -180,6 +180,7 @@ func signal_ignored(s uint32) bool {
// This runs on a foreign stack, without an m or a g. No stack split.
//go:nosplit
//go:norace
+//go:nowritebarrierrec
func badsignal(sig uintptr) {
cgocallback(unsafe.Pointer(funcPC(badsignalgo)), noescape(unsafe.Pointer(&sig)), unsafe.Sizeof(sig))
}