mirror of
https://github.com/golang/go
synced 2024-11-12 08:50:22 -07:00
runtime: mark sigInitIgnored nosplit
The sigInitIgnored function can be called by initsig before a shared library is initialized, before the runtime is initialized. Fixes #27183 Change-Id: I7073767938fc011879d47ea951d63a14d1cce878 Reviewed-on: https://go-review.googlesource.com/131277 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
05c02444eb
commit
97f1535285
@ -237,8 +237,10 @@ func signal_ignore(s uint32) {
|
||||
atomic.Store(&sig.ignored[s/32], i)
|
||||
}
|
||||
|
||||
// sigInitIgnored marks the signal as already ignored. This is called at
|
||||
// program start by siginit.
|
||||
// sigInitIgnored marks the signal as already ignored. This is called at
|
||||
// program start by initsig. In a shared library initsig is called by
|
||||
// libpreinit, so the runtime may not be initialized yet.
|
||||
//go:nosplit
|
||||
func sigInitIgnored(s uint32) {
|
||||
i := sig.ignored[s/32]
|
||||
i |= 1 << (s & 31)
|
||||
|
Loading…
Reference in New Issue
Block a user