]> Cypherpunks repositories - gostls13.git/commit
runtime, runtime/cgo: use libc for sigaction syscalls when cgo is enabled on loong64
authorlimeidan <limeidan@loongson.cn>
Wed, 5 Mar 2025 07:07:07 +0000 (15:07 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Tue, 18 Mar 2025 01:30:39 +0000 (18:30 -0700)
commit180795ceac69b57b9a13f51c87f0be9bf9af9050
treef1ad5060bd677129ffd2426a601e1f7be6b8e861
parentcd2f347c61bd9f41e977d74dc2dd3a1f36b65800
runtime, runtime/cgo: use libc for sigaction syscalls when cgo is enabled on loong64

This ensures that runtime's signal handlers pass through the TSAN and
MSAN libc interceptors and subsequent calls to the intercepted
sigaction function from C will correctly see them.

Change-Id: I243a70d9dcb6d95a65c8494d5f9f9f09a316c693
Reviewed-on: https://go-review.googlesource.com/c/go/+/654995
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/cgo/gcc_sigaction.c
src/runtime/cgo/sigaction.go
src/runtime/cgo_sigaction.go
src/runtime/sigaction.go
src/runtime/sys_linux_loong64.s