Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 144953005: TSAN: use somewhat pithier SK_ANNOTATE_UNPROTECTED_READ. (Closed)

Created:
6 years, 10 months ago by mtklein
Modified:
6 years, 10 months ago
Reviewers:
bungeman-skia, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

TSAN: use somewhat pithier SK_ANNOTATE_UNPROTECTED_READ. This is a little bit better practice to be i than the existing SK_ANNOTATE_BENIGN_RACE, as UNPROTECTED_READ will only ignore reads, not writes. Tag SkRefCnt::unique() as a safe unprotected read like SkOnce's double-checked locking. BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=13309

Patch Set 1 #

Total comments: 3

Patch Set 2 : docs #

Patch Set 3 : benh #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -19 lines) Patch
A include/core/SkDynamicAnnotations.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
M include/core/SkOnce.h View 2 chunks +2 lines, -17 lines 0 comments Download
M include/core/SkRefCnt.h View 1 2 2 chunks +5 lines, -2 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
mtklein
6 years, 10 months ago (2014-02-04 14:39:12 UTC) #1
reed1
lgtm w/ dox request https://codereview.chromium.org/144953005/diff/1/include/core/SkDynamicAnnotations.h File include/core/SkDynamicAnnotations.h (right): https://codereview.chromium.org/144953005/diff/1/include/core/SkDynamicAnnotations.h#newcode12 include/core/SkDynamicAnnotations.h:12: // we check the same ...
6 years, 10 months ago (2014-02-04 14:57:55 UTC) #2
bungeman-skia
https://codereview.chromium.org/144953005/diff/1/include/core/SkRefCnt.h File include/core/SkRefCnt.h (right): https://codereview.chromium.org/144953005/diff/1/include/core/SkRefCnt.h#newcode52 include/core/SkRefCnt.h:52: // We believe we're reading fRefCnt in a safe ...
6 years, 10 months ago (2014-02-04 15:20:53 UTC) #3
mtklein
ptal
6 years, 10 months ago (2014-02-04 17:11:44 UTC) #4
bungeman-skia
lgtm https://codereview.chromium.org/144953005/diff/110001/include/core/SkRefCnt.h File include/core/SkRefCnt.h (right): https://codereview.chromium.org/144953005/diff/110001/include/core/SkRefCnt.h#newcode53 include/core/SkRefCnt.h:53: // an unproctected read. Generally, don't read fRefCnt, ...
6 years, 10 months ago (2014-02-04 17:21:39 UTC) #5
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 10 months ago (2014-02-04 17:43:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/144953005/110001
6 years, 10 months ago (2014-02-04 17:43:44 UTC) #7
commit-bot: I haz the power
6 years, 10 months ago (2014-02-04 18:00:26 UTC) #8
Message was sent while issue was closed.
Change committed as 13309

Powered by Google App Engine
This is Rietveld 408576698