]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: use sigaltstack on macOS/ARM64
authorCherry Zhang <cherryyz@google.com>
Sat, 12 Sep 2020 16:33:24 +0000 (12:33 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 6 Oct 2020 21:25:42 +0000 (21:25 +0000)
commit28e549dec3954b36d0c83442be913d8709d7e5ae
tree2c147b877df8c32fd1715cf9443937f8dc80a72f
parent04c7e32517faf6257986e7c4cdd3f5f03eeae37b
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>
misc/cgo/test/sigaltstack.go
src/cmd/internal/obj/arm64/obj7.go
src/runtime/mkpreempt.go
src/runtime/os_darwin.go
src/runtime/preempt_arm64.s
src/runtime/stack.go
src/runtime/sys_darwin_arm64.s