aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/RecordingBench.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-02-09 14:47:06 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-09 14:47:06 -0800
commite72a80db3a05c78e65caf4c7cd24b73ebae74868 (patch)
tree30cad84bb420bc4d34b59aa2c71480e6262ee614 /bench/RecordingBench.cpp
parent01f797fcb0c7497d3d62af84516f489c83cd1634 (diff)
Port SkLazyPtr to new SkAtomics.h
No algorithmic changes. The new APIs let us avoid a few ugly trips through void*, and I've made the consume/acquire/release decision explicitly conditioned on TSAN. This should fix the attached bug, which is TSAN seeing us implementing the sk_consume_load() with a relaxed load, where we used to pass __ATOMIC_CONSUME to TSAN. This restores us to the status quo of a couple weeks ago, where we use relaxed loads (to avoid an extra dmb on ARM) for all setups except TSAN, who gets the logically correct memory order, consume. No public API changes. TBR=reed@google.com BUG=chromium:455606 Review URL: https://codereview.chromium.org/908943002
Diffstat (limited to 'bench/RecordingBench.cpp')
0 files changed, 0 insertions, 0 deletions