diff options
author | Ian Lance Taylor <iant@golang.org> | 2016-09-27 13:42:28 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2016-09-27 21:33:44 +0000 |
commit | fdc167164ecde259bd356cc8e7ae5ccb0903469c (patch) | |
tree | 0b4eee66e1530b4f35966e30ac1ee0a0b29e5148 /src/runtime/os_linux_s390x.go | |
parent | e13df02e5fbf2c0cd8811b826a8c8567efa882dd (diff) | |
download | go-fdc167164ecde259bd356cc8e7ae5ccb0903469c.tar.gz go-fdc167164ecde259bd356cc8e7ae5ccb0903469c.zip |
runtime: remove sigmask type, use sigset instead
The OS-independent sigmask type was not pulling its weight. Replace it
with the OS-dependent sigset type. This requires adding an OS-specific
sigaddset function, but permits removing the OS-specific sigmaskToSigset
function.
Change-Id: I43307b512b0264ec291baadaea902f05ce212305
Reviewed-on: https://go-review.googlesource.com/29950
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/os_linux_s390x.go')
-rw-r--r-- | src/runtime/os_linux_s390x.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/runtime/os_linux_s390x.go b/src/runtime/os_linux_s390x.go index 0fb48c0310..bdda2a3a6e 100644 --- a/src/runtime/os_linux_s390x.go +++ b/src/runtime/os_linux_s390x.go @@ -23,6 +23,8 @@ type rlimit struct { var sigset_all = sigset(^uint64(0)) +//go:nosplit +//go:nowritebarrierrec func sigaddset(mask *sigset, i int) { if i > 64 { throw("unexpected signal greater than 64") @@ -40,9 +42,3 @@ func sigdelset(mask *sigset, i int) { func sigfillset(mask *uint64) { *mask = ^uint64(0) } - -//go:nosplit -//go:nowritebarrierrec -func sigmaskToSigset(m sigmask) sigset { - return sigset(uint64(m[0]) | uint64(m[1])<<32) -} |