]> Cypherpunks repositories - gostls13.git/commit
syscall: add //go:norace to RawSyscall
authorMichael Pratt <mpratt@google.com>
Thu, 28 Apr 2022 15:44:28 +0000 (11:44 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 28 Apr 2022 16:00:39 +0000 (16:00 +0000)
commit17371eea25f203575389f85b33ddb58792d25e84
treef74018adffffbca2bdba7fb1fcac44e788db850d
parent4d350710a23c505f0afcc6bcd8ac7ba37145b521
syscall: add //go:norace to RawSyscall

RawSyscall is used in a variety of rather unsafe conditions, such as
after fork in forkAndExecInChild1. Disable race instrumentation to avoid
calling TSAN in unsafe conditions.

For #51087

Change-Id: I47c35e6f0768c77ddab99010ea0404c45ad2f1da
Reviewed-on: https://go-review.googlesource.com/c/go/+/402914
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
src/syscall/syscall_linux.go