]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: do not race instrument syscall.forkAndExecInChild
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 16 Jul 2013 11:35:03 +0000 (15:35 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 16 Jul 2013 11:35:03 +0000 (15:35 +0400)
commit63e0ddc7bf0c7523d826331ff51a551c5040b50b
tree433d3220ad125691a340739ebc95f0f7cf51db42
parent7e270cf6c4be9ddc240c2661c18f163728cbb897
cmd/gc: do not race instrument syscall.forkAndExecInChild
Race instrumentation can allocate, switch stacks, preempt, etc.
All that is not allowed in between fork and exec.
Fixes #4840.

R=golang-dev, daniel.morsing, dave
CC=golang-dev
https://golang.org/cl/11324044
src/cmd/gc/racewalk.c
src/pkg/syscall/exec_bsd.go
src/pkg/syscall/exec_linux.go