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.
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
*** 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
*** Submitted as https://code.google.com/p/go/source/detail?r=4085766e8390 ***
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.
LGTM=khr
R=golang-codereviews, khr
CC=golang-codereviews, rsc
https://codereview.appspot.com/111310044
Issue 111310044: code review 111310044: runtime/race: better handling of atomic operations
(Closed)
Created 9 years, 9 months ago by dvyukov
Modified 9 years, 8 months ago
Reviewers: gobot, dave_cheney.net
Base URL:
Comments: 0