]> Cypherpunks repositories - gostls13.git/commit
runtime: use asmcgocall_no_g when calling sigprocmask on openbsd
authorJoel Sing <joel@sing.id.au>
Sun, 30 May 2021 14:18:54 +0000 (00:18 +1000)
committerJoel Sing <joel@sing.id.au>
Sun, 22 Aug 2021 13:54:24 +0000 (13:54 +0000)
commit6416bde023d897dcedc6d53bf0bf58821962f435
tree06949fe971c31908017caac3b7472ed243274f5a
parentbd6845965c298b250f8af577a24416de0661c53d
runtime: use asmcgocall_no_g when calling sigprocmask on openbsd

sigprocmask is called from sigsave, which is called from needm. As such,
sigprocmask has to be able to run with no g. For some reason we do not
currently trip this on current libc platforms, but we do hit it on
openbsd/mips64 with external linking.

Updates #36435

Change-Id: I4dfae924245c5f68cc012755d6485939014898a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/334879
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/sys_openbsd2.go