mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: remove scattered remnants of darwin/arm
This removes all conditions and conditional code (that I could find) that depended on darwin/arm. Fixes #35439 (since that only happened on darwin/arm) Fixes #37611. Change-Id: Ia4c32a5a4368ed75231075832b0b5bfb1ad11986 Reviewed-on: https://go-review.googlesource.com/c/go/+/227198 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
da8591b61c
commit
f7e6ab44b4
50 changed files with 81 additions and 174 deletions
|
|
@ -350,8 +350,8 @@ func preemptM(mp *m) {
|
|||
// yet, so doSigPreempt won't work.
|
||||
return
|
||||
}
|
||||
if GOOS == "darwin" && (GOARCH == "arm" || GOARCH == "arm64") && !iscgo {
|
||||
// On darwin, we use libc calls, and cgo is required on ARM and ARM64
|
||||
if GOOS == "darwin" && GOARCH == "arm64" && !iscgo {
|
||||
// On darwin, we use libc calls, and cgo is required on ARM64
|
||||
// so we have TLS set up to save/restore G during C calls. If cgo is
|
||||
// absent, we cannot save/restore G in TLS, and if a signal is
|
||||
// received during C execution we cannot get the G. Therefore don't
|
||||
|
|
@ -1191,7 +1191,7 @@ func signalstack(s *stack) {
|
|||
sigaltstack(&st, nil)
|
||||
}
|
||||
|
||||
// setsigsegv is used on darwin/arm{,64} to fake a segmentation fault.
|
||||
// setsigsegv is used on darwin/arm64 to fake a segmentation fault.
|
||||
//
|
||||
// This is exported via linkname to assembly in runtime/cgo.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue