Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(208)

Issue 11324044: code review 11324044: cmd/gc: do not race instrument syscall.forkAndExecInChild (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by dvyukov
Modified:
11 years, 11 months ago
Reviewers:
rsc, DMorsing, dave
CC:
golang-dev, DMorsing, dave_cheney.net
Visibility:
Public.

Description

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 issue 4840.

Patch Set 1 #

Patch Set 2 : diff -r aed85a24be49 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r aed85a24be49 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 3

Patch Set 4 : diff -r 8b5ccd3ec19a https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M src/cmd/gc/racewalk.c View 1 2 chunks +13 lines, -1 line 0 comments Download
M src/pkg/syscall/exec_bsd.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/syscall/exec_linux.go View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 11 months ago (2013-07-16 09:43:26 UTC) #1
DMorsing
LGTM.
11 years, 11 months ago (2013-07-16 10:51:34 UTC) #2
dave_cheney.net
LGTM. Thank you very much for working on this. https://codereview.appspot.com/11324044/diff/6001/src/pkg/syscall/exec_bsd.go File src/pkg/syscall/exec_bsd.go (right): https://codereview.appspot.com/11324044/diff/6001/src/pkg/syscall/exec_bsd.go#newcode30 src/pkg/syscall/exec_bsd.go:30: ...
11 years, 11 months ago (2013-07-16 10:58:30 UTC) #3
dvyukov
https://codereview.appspot.com/11324044/diff/6001/src/pkg/syscall/exec_bsd.go File src/pkg/syscall/exec_bsd.go (right): https://codereview.appspot.com/11324044/diff/6001/src/pkg/syscall/exec_bsd.go#newcode30 src/pkg/syscall/exec_bsd.go:30: // For the same reason compiler does not race ...
11 years, 11 months ago (2013-07-16 11:27:22 UTC) #4
dave_cheney.net
This was my mistake, please ignore my comment. On Tue, Jul 16, 2013 at 9:27 ...
11 years, 11 months ago (2013-07-16 11:32:53 UTC) #5
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=9f9fdf917ffc *** cmd/gc: do not race instrument syscall.forkAndExecInChild Race instrumentation can allocate, ...
11 years, 11 months ago (2013-07-16 11:35:19 UTC) #6
rsc
11 years, 11 months ago (2013-07-16 13:22:53 UTC) #7
Message was sent while issue was closed.
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b