File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -350,17 +350,6 @@ const preemptMSupported = true
350
350
// safe-point, it will preempt the goroutine. It always atomically
351
351
// increments mp.preemptGen after handling a preemption request.
352
352
func preemptM (mp * m ) {
353
- if (GOOS == "darwin" || GOOS == "ios" ) && GOARCH == "arm64" && ! iscgo {
354
- // On darwin, we use libc calls, and cgo is required on ARM64
355
- // so we have TLS set up to save/restore G during C calls. If cgo is
356
- // absent, we cannot save/restore G in TLS, and if a signal is
357
- // received during C execution we cannot get the G. Therefore don't
358
- // send signals.
359
- // This can only happen in the go_bootstrap program (otherwise cgo is
360
- // required).
361
- return
362
- }
363
-
364
353
// On Darwin, don't try to preempt threads during exec.
365
354
// Issue #41702.
366
355
if GOOS == "darwin" {
You can’t perform that action at this time.
0 commit comments