]> Cypherpunks repositories - gostls13.git/commit
runtime: guard against runtime/sema* ops on Darwin signal stack.
authorDavid Chase <drchase@google.com>
Mon, 14 Aug 2023 17:20:45 +0000 (13:20 -0400)
committerDavid Chase <drchase@google.com>
Wed, 16 Aug 2023 17:51:47 +0000 (17:51 +0000)
commit91bea5a21dc1a951a7fbe491a6da07b664c5a167
tree8ea335dd8c0e4e75ba99b8786bf1ad8c507c368a
parent0e9bf41e1dce5c75f80f255cc11b8076b6203994
runtime: guard against runtime/sema* ops on Darwin signal stack.

These operations misbehave and cause hangs and flakes.
Fail hard if they are attempted.

Tested by backing out the Darwin-profiling-hang fix
CL 518836 and running run.bash, the guard panicked in
runtime/pprof tests, as expected/hoped.

Updates #61768

Change-Id: I89b6f85745fbaa2245141ea98f584afc5d6b133e
Reviewed-on: https://go-review.googlesource.com/c/go/+/519275
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/os_darwin.go