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

Issue 7229044: code review 7229044: runtime: implement range access functions in race detector. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by remyoudompheng
Modified:
12 years, 1 month ago
Reviewers:
CC:
dvyukov, golang-dev, albert.strasheim
Visibility:
Public.

Description

runtime: implement range access functions in race detector. Range access functions are already available in TSan library but were not yet used. Time for go test -race -short: Before: compress/flate 24.244s exp/norm >200s go/printer 78.268s After: compress/flate 17.760s exp/norm 5.537s go/printer 5.738s Fixes issue 4250.

Patch Set 1 #

Patch Set 2 : diff -r 6b7f0677efb3 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 6b7f0677efb3 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 4 : diff -r 6b7f0677efb3 https://go.googlecode.com/hg/ #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -52 lines) Patch
M src/pkg/runtime/race.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/race.c View 1 2 3 2 chunks +38 lines, -0 lines 0 comments Download
M src/pkg/runtime/race/race.go View 1 2 chunks +12 lines, -0 lines 0 comments Download
M src/pkg/runtime/race0.c View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M src/pkg/runtime/slice.c View 1 2 3 7 chunks +50 lines, -52 lines 0 comments Download

Messages

Total messages: 9
remyoudompheng
Hello dvyukov@google.com, 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, 1 month ago (2013-01-27 01:05:31 UTC) #1
albert.strasheim
Awesome. The other one that needed serious help was code.google.com/p/go.net/idna What is the effect there?
12 years, 1 month ago (2013-01-27 04:27:57 UTC) #2
remyoudompheng
On 2013/1/27 <fullung@gmail.com> wrote: > Awesome. > > The other one that needed serious help ...
12 years, 1 month ago (2013-01-27 07:33:22 UTC) #3
dvyukov
Please add stubs to pkg/runtime/race0.c even if it builds now somehow.
12 years, 1 month ago (2013-01-27 10:03:01 UTC) #4
dvyukov
https://codereview.appspot.com/7229044/diff/4001/src/pkg/runtime/slice.c File src/pkg/runtime/slice.c (right): https://codereview.appspot.com/7229044/diff/4001/src/pkg/runtime/slice.c#newcode84 src/pkg/runtime/slice.c:84: if(m > x.cap) { remove {} https://codereview.appspot.com/7229044/diff/4001/src/pkg/runtime/slice.c#newcode162 src/pkg/runtime/slice.c:162: runtime·racewritepc(old.array ...
12 years, 1 month ago (2013-01-27 10:49:18 UTC) #5
remyoudompheng
Hello dvyukov@google.com, golang-dev@googlegroups.com, fullung@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2013-01-27 18:21:14 UTC) #6
remyoudompheng
https://codereview.appspot.com/7229044/diff/4001/src/pkg/runtime/slice.c File src/pkg/runtime/slice.c (right): https://codereview.appspot.com/7229044/diff/4001/src/pkg/runtime/slice.c#newcode84 src/pkg/runtime/slice.c:84: if(m > x.cap) { On 2013/01/27 10:49:18, dvyukov wrote: ...
12 years, 1 month ago (2013-01-27 18:35:53 UTC) #7
dvyukov
LGTM++ Thanks!
12 years, 1 month ago (2013-01-29 11:08:19 UTC) #8
remyoudompheng
12 years, 1 month ago (2013-01-30 00:55:15 UTC) #9
*** Submitted as https://code.google.com/p/go/source/detail?r=185eb42ac938 ***

runtime: implement range access functions in race detector.

Range access functions are already available in TSan library
but were not yet used.

Time for go test -race -short:

Before:
compress/flate 24.244s
exp/norm       >200s
go/printer     78.268s

After:
compress/flate 17.760s
exp/norm        5.537s
go/printer      5.738s

Fixes issue 4250.

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

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