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

Issue 8053044: code review 8053044: cmd/gc: instrument arrays properly in race detector. (Closed)

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

Description

cmd/gc: instrument arrays properly in race detector. The previous implementation would only record access to the address of the array but the memory access to the whole memory range must be recorded instead.

Patch Set 1 #

Patch Set 2 : diff -r 7cd19e1a734a https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 7cd19e1a734a https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 4 : diff -r 833bf2ef1527 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 833bf2ef1527 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 6 : diff -r 3378d2483995 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r d2276901050c https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 330478300ab0 https://go.googlecode.com/hg/ #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -32 lines) Patch
M src/cmd/gc/builtin.c View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/gc/racewalk.c View 1 2 3 4 5 6 7 3 chunks +7 lines, -30 lines 0 comments Download
M src/cmd/gc/runtime.go View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/race.c View 1 2 3 4 5 6 7 2 chunks +22 lines, -0 lines 0 comments Download
M src/pkg/runtime/race/testdata/mop_test.go View 1 2 3 4 5 6 7 2 chunks +19 lines, -2 lines 0 comments Download

Messages

Total messages: 19
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/
12 years, 3 months ago (2013-03-27 21:58:29 UTC) #1
remyoudompheng
Now go test -race runtime/race complains: === RUN TestRace [...] RaceFailingSliceStruct . RaceFailingAppendSliceStruct . [...] ...
12 years, 3 months ago (2013-03-27 22:01:42 UTC) #2
dvyukov
On 2013/03/27 22:01:42, remyoudompheng wrote: > Now go test -race runtime/race complains: > > === ...
12 years, 3 months ago (2013-03-28 11:11:45 UTC) #3
dvyukov
LGTM https://codereview.appspot.com/8053044/diff/5001/src/cmd/gc/racewalk.c File src/cmd/gc/racewalk.c (right): https://codereview.appspot.com/8053044/diff/5001/src/cmd/gc/racewalk.c#newcode471 src/cmd/gc/racewalk.c:471: if(callinstr(&f, init, wr, 0)) { Now I am ...
12 years, 3 months ago (2013-03-28 11:27:20 UTC) #4
remyoudompheng
On 2013/03/28 11:11:45, dvyukov wrote: > On 2013/03/27 22:01:42, remyoudompheng wrote: > > Now go ...
12 years, 3 months ago (2013-03-28 18:58:30 UTC) #5
remyoudompheng
Does it LGTY with my remark? https://codereview.appspot.com/8053044/diff/5001/src/cmd/gc/racewalk.c File src/cmd/gc/racewalk.c (right): https://codereview.appspot.com/8053044/diff/5001/src/cmd/gc/racewalk.c#newcode471 src/cmd/gc/racewalk.c:471: if(callinstr(&f, init, wr, ...
12 years, 3 months ago (2013-03-28 19:03:34 UTC) #6
remyoudompheng
Hello golang-dev@googlegroups.com, dvyukov@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 3 months ago (2013-03-28 22:49:10 UTC) #7
remyoudompheng
Hello golang-dev@googlegroups.com, dvyukov@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 3 months ago (2013-03-28 22:49:21 UTC) #8
remyoudompheng
I suggest a completely different approach now. I may revert to the previous patchste if ...
12 years, 3 months ago (2013-03-28 22:52:16 UTC) #9
dvyukov
I need some time to review this. Yes, it's quite radical. I need to do ...
12 years, 3 months ago (2013-03-29 06:45:03 UTC) #10
remyoudompheng
Hello golang-dev@googlegroups.com, dvyukov@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2013-06-08 07:22:59 UTC) #11
r
please write a more thorough CL description. i had no idea what 'instrumentation of arrays' ...
12 years, 1 month ago (2013-06-08 15:18:24 UTC) #12
dvyukov
LGTM, but please wait until I update the race runtime to better handle range accesses ...
12 years, 1 month ago (2013-06-09 16:58:56 UTC) #13
remyoudompheng
On 2013/06/09 16:58:56, dvyukov wrote: > LGTM, but please wait until I update the race ...
12 years, 1 month ago (2013-06-09 17:01:38 UTC) #14
remyoudompheng
On 2013/06/08 15:18:24, r wrote: > please write a more thorough CL description. i had ...
12 years, 1 month ago (2013-06-09 17:04:33 UTC) #15
dvyukov
On 2013/06/09 17:04:33, remyoudompheng wrote: > On 2013/06/08 15:18:24, r wrote: > > please write ...
12 years, 1 month ago (2013-06-09 17:07:34 UTC) #16
remyoudompheng
Hello golang-dev@googlegroups.com, dvyukov@google.com, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2013-06-13 21:37:46 UTC) #17
dvyukov
LGTM
12 years ago (2013-06-14 04:27:58 UTC) #18
remyoudompheng
12 years ago (2013-06-14 07:15:54 UTC) #19
*** Submitted as https://code.google.com/p/go/source/detail?r=52d53d0e177e ***

cmd/gc: instrument arrays properly in race detector.

The previous implementation would only record access to
the address of the array but the memory access to the whole
memory range must be recorded instead.

R=golang-dev, dvyukov, r
CC=golang-dev
https://codereview.appspot.com/8053044
Sign in to reply to this message.

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