diff options
author | Cherry Zhang <cherryyz@google.com> | 2020-09-12 12:33:24 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2020-10-06 21:25:42 +0000 |
commit | 28e549dec3954b36d0c83442be913d8709d7e5ae (patch) | |
tree | 2c147b877df8c32fd1715cf9443937f8dc80a72f /misc | |
parent | 04c7e32517faf6257986e7c4cdd3f5f03eeae37b (diff) | |
download | go-28e549dec3954b36d0c83442be913d8709d7e5ae.tar.gz go-28e549dec3954b36d0c83442be913d8709d7e5ae.zip |
runtime: use sigaltstack on macOS/ARM64
Currently we don't use sigaltstack on darwin/arm64, as is not
supported on iOS. However, it is supported on macOS. Use it.
(iOS remains unchanged.)
Change-Id: Icc154c5e2edf2dbdc8ca68741ad9157fc15a72ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/256917
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cgo/test/sigaltstack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/test/sigaltstack.go b/misc/cgo/test/sigaltstack.go index 27b753a147..034cc4b371 100644 --- a/misc/cgo/test/sigaltstack.go +++ b/misc/cgo/test/sigaltstack.go @@ -62,7 +62,7 @@ import ( func testSigaltstack(t *testing.T) { switch { - case runtime.GOOS == "solaris", runtime.GOOS == "illumos", (runtime.GOOS == "darwin" || runtime.GOOS == "ios") && runtime.GOARCH == "arm64": + case runtime.GOOS == "solaris", runtime.GOOS == "illumos", runtime.GOOS == "ios" && runtime.GOARCH == "arm64": t.Skipf("switching signal stack not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) } |