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

Issue 25357002: In skia_test.cc, atomics -> mutex. (Closed)

Created:
7 years, 2 months ago by mtklein
Modified:
7 years, 2 months ago
Reviewers:
bungeman-skia
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

In skia_test.cc, atomics -> mutex. These guys are not heavily contended nor speed critical. No need for atomics, plus this makes tsan stop complaining (correctly) about reading fNextIndex unsafely in onEnd. I took a look at failCount/fFailCount, which I think is safely atomic and quite conveniently so: It's never read until all the threads which could possibly increment it have terminated (except for the one where it was created, obviously). We could guard it with a mutex too, but maybe we can let this one slide. BUG= Committed: http://code.google.com/p/skia/source/detail?r=11561

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 2

Patch Set 3 : rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M tests/skia_test.cpp View 1 2 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
mtklein
7 years, 2 months ago (2013-09-30 21:58:03 UTC) #1
bungeman-skia
lgtm, with some nay saying about having another generically named mutex. https://codereview.chromium.org/25357002/diff/3001/tests/skia_test.cpp File tests/skia_test.cpp (right): ...
7 years, 2 months ago (2013-10-01 17:13:09 UTC) #2
mtklein
https://codereview.chromium.org/25357002/diff/3001/tests/skia_test.cpp File tests/skia_test.cpp (right): https://codereview.chromium.org/25357002/diff/3001/tests/skia_test.cpp#newcode112 tests/skia_test.cpp:112: SkMutex fMutex; // Guards fNextIndex and fPending. On 2013/10/01 ...
7 years, 2 months ago (2013-10-01 17:16:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/25357002/7001
7 years, 2 months ago (2013-10-01 17:16:30 UTC) #4
commit-bot: I haz the power
7 years, 2 months ago (2013-10-01 18:44:01 UTC) #5
Message was sent while issue was closed.
Change committed as 11561

Powered by Google App Engine
This is Rietveld 408576698