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

Issue 180030043: code review 180030043: [release-branch.go1.4] runtime: fix atomic operations o... (Closed)

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

Description

[release-branch.go1.4] runtime: fix atomic operations on non-heap addresses ««« CL 179030043 / e4ab8f908aac runtime: fix atomic operations on non-heap addresses Race detector runtime does not tolerate operations on addresses that was not previously declared with __tsan_map_shadow (namely, data, bss and heap). The corresponding address checks for atomic operations were removed in https://codereview.appspot.com/111310044 Restore these checks. It's tricker than just not calling into race runtime, because it is the race runtime that makes the atomic operations themselves (if we do not call into race runtime we skip the atomic operation itself as well). So instead we call __tsan_go_ignore_sync_start/end around the atomic operation. This forces race runtime to skip all other processing except than doing the atomic operation itself. Fixes issue 9136. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/179030043 Committer: Russ Cox <rsc@golang.org> »»»

Patch Set 1 #

Patch Set 2 : diff -r a9cf551011a2d0f7b69300e26900b177db08285e https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -13 lines) Patch
M src/runtime/race.c View 1 3 chunks +6 lines, -7 lines 0 comments Download
A src/runtime/race/race_unix_test.go View 1 1 chunk +30 lines, -0 lines 0 comments Download
M src/runtime/race_amd64.s View 1 3 chunks +37 lines, -6 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello dvyukov (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
9 years, 5 months ago (2014-11-20 15:14:44 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=0f20d1afae39 *** [release-branch.go1.4] runtime: fix atomic operations on non-heap addresses ««« CL ...
9 years, 5 months ago (2014-11-20 15:14:54 UTC) #2
dvyukov
9 years, 5 months ago (2014-11-20 15:24:40 UTC) #3
Message was sent while issue was closed.
LGTM
Sign in to reply to this message.

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