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

Issue 111310044: code review 111310044: runtime/race: better handling of atomic operations (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 9 months ago by dvyukov
Modified:
9 years, 8 months ago
Reviewers:
gobot, khr, dave
CC:
golang-codereviews, khr, rsc
Visibility:
Public.

Description

runtime/race: better handling of atomic operations This change fixes the last known false negative of the race detector -- detection of races between mutating atomic operations and non-atomic operations. Race runtime already has functions for precise modelling of various atomic operations, so this change just forwards all atomic ops to race runtime instead of poor man modeling in sync/atomic package. Performance is also improved -- full sync/atomic tests run in 60s instead of 85s now.

Patch Set 1 #

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

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

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

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

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

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

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

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

Patch Set 10 : diff -r 9e13ce244308c90a586856867c6ca59a47a74849 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 11 : diff -r 9e13ce244308c90a586856867c6ca59a47a74849 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 12 : diff -r 9e13ce244308c90a586856867c6ca59a47a74849 https://code.google.com/p/go/ #

Patch Set 13 : diff -r 9e13ce244308c90a586856867c6ca59a47a74849 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -300 lines) Patch
M src/pkg/runtime/race.c View 1 2 3 4 5 6 7 4 chunks +19 lines, -16 lines 0 comments Download
M src/pkg/runtime/race/README View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/race/race_darwin_amd64.syso View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M src/pkg/runtime/race/race_freebsd_amd64.syso View 1 2 3 4 5 6 7 8 9 10 11 Binary file 0 comments Download
M src/pkg/runtime/race/race_linux_amd64.syso View 1 2 3 4 5 6 7 Binary file 0 comments Download
M src/pkg/runtime/race/race_windows_amd64.syso View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
M src/pkg/runtime/race/testdata/atomic_test.go View 1 2 chunks +2 lines, -4 lines 0 comments Download
M src/pkg/runtime/race_amd64.s View 1 2 3 4 5 6 7 2 chunks +136 lines, -1 line 0 comments Download
M src/pkg/sync/atomic/doc.go View 1 1 chunk +0 lines, -2 lines 0 comments Download
R src/pkg/sync/atomic/race.go View 1 2 3 1 chunk +0 lines, -276 lines 0 comments Download
A src/pkg/sync/atomic/race.s View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 6
dvyukov
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
9 years, 9 months ago (2014-07-18 16:02:13 UTC) #1
dvyukov
I will upload the rest of the syso's later.
9 years, 9 months ago (2014-07-18 16:03:01 UTC) #2
khr
LGTM.
9 years, 9 months ago (2014-07-18 22:51:27 UTC) #3
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=4085766e8390 *** runtime/race: better handling of atomic operations This change fixes the ...
9 years, 8 months ago (2014-09-01 12:04:54 UTC) #4
gobot
This CL appears to have broken the darwin-386-cheney builder. See http://build.golang.org/log/14818d6bb26c89b527361ccde687e1f2151125c5
9 years, 8 months ago (2014-09-01 12:07:07 UTC) #5
dave_cheney.net
9 years, 8 months ago (2014-09-01 12:18:49 UTC) #6
More worrying network errors

ok   mime/multipart 0.482s
--- FAIL: TestDialMultiFDLeak (0.43s)
dial_test.go:404: tcp sessions: 7, open sessions: 6, closing sessions: 1
dial_test.go:407: got 6 open sessions; expected 2
FAIL
FAIL net 3.041s
ok   net/http 9.396s

On Mon, Sep 1, 2014 at 10:07 PM,  <gobot@golang.org> wrote:
> This CL appears to have broken the darwin-386-cheney builder.
> See http://build.golang.org/log/14818d6bb26c89b527361ccde687e1f2151125c5
>
>
> https://codereview.appspot.com/111310044/
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-codereviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-codereviews+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Sign in to reply to this message.

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