From 77b1fef27e736764395633413fc13c14d8fed712 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 19 Oct 2015 17:01:37 -0700 Subject: cmd/compile, syscall: use go:norace comment for forkAndExecInChild Use a go:norace comment rather than having the compiler know the special name syscall.forkAndExecInChild. Change-Id: I69bc6aa6fc40feb2148d23f269ff32453696fb28 Reviewed-on: https://go-review.googlesource.com/16097 Reviewed-by: Minux Ma --- src/syscall/exec_linux.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/syscall/exec_linux.go') diff --git a/src/syscall/exec_linux.go b/src/syscall/exec_linux.go index 8fe5491f90..3e08d43bed 100644 --- a/src/syscall/exec_linux.go +++ b/src/syscall/exec_linux.go @@ -53,6 +53,7 @@ func runtime_AfterFork() // For the same reason compiler does not race instrument it. // The calls to RawSyscall are okay because they are assembly // functions that do not grow the stack. +//go:norace func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr *ProcAttr, sys *SysProcAttr, pipe int) (pid int, err Errno) { // Declare all variables at top in case any // declarations require heap allocation (e.g., err1). -- cgit v1.3