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

Issue 6821068: code review 6821068: cmd/gc: instrument blocks for race detection. (Closed)

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

Description

cmd/gc: instrument blocks for race detection. It happens that blocks are used for function calls in a quite low-level way so they cannot be instrumented as usual. Blocks are also used for inlined functions.

Patch Set 1 #

Patch Set 2 : diff -r 9f006a6e4d60 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 3 : diff -r 311b51675518 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 311b51675518 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
M src/cmd/gc/racewalk.c View 1 2 2 chunks +23 lines, -2 lines 0 comments Download

Messages

Total messages: 5
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 5 months ago (2012-11-01 20:07:30 UTC) #1
rsc
LGTM but wait for dvyukov
11 years, 5 months ago (2012-11-01 20:14:02 UTC) #2
dvyukov
LGTM with the comment below. I've added the tests for this case: https://codereview.appspot.com/6525052/diff2/12019:16019/src/pkg/runtime/race/mop_test.go They pass ...
11 years, 5 months ago (2012-11-02 08:09:29 UTC) #3
dvyukov
And thanks!
11 years, 5 months ago (2012-11-02 08:12:42 UTC) #4
remyoudompheng
11 years, 5 months ago (2012-11-02 23:11:15 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=f2f1298fc620 ***

cmd/gc: instrument blocks for race detection.

It happens that blocks are used for function calls in a
quite low-level way so they cannot be instrumented as
usual.

Blocks are also used for inlined functions.

R=golang-dev, rsc, dvyukov
CC=golang-dev
http://codereview.appspot.com/6821068

http://codereview.appspot.com/6821068/diff/2001/src/cmd/gc/racewalk.c
File src/cmd/gc/racewalk.c (right):

http://codereview.appspot.com/6821068/diff/2001/src/cmd/gc/racewalk.c#newcode139
src/cmd/gc/racewalk.c:139: racewalklist(n->ninit, nil);
On 2012/11/02 08:09:29, dvyukov wrote:
> It is already handled on line 102.

Done.
Sign in to reply to this message.

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