From 84a95be922f09ea6b2235da0f67bf7ba490d092a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 7 Jan 2016 20:28:04 -0800 Subject: 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 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/runtime/sigqueue.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/sigqueue.go') 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)) } -- cgit v1.3-5-g9baa