aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-23 15:24:27 +0000
committerGravatar mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-23 15:24:27 +0000
commit338a66481e1f3597bb8e2d5aeb5a26d5bd3c5f3e (patch)
treedfaad6fb9afe07de429d8e569c7f1c38244709d9 /src
parenteb832599b631a09b180ea3615347adba6bd5e363 (diff)
TSAN build fix: forgot to pass the address into ANNOTATE_BENIGN_RACE.
BUG= Review URL: https://codereview.chromium.org/37403002 git-svn-id: http://skia.googlecode.com/svn/trunk@11916 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkOnce.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkOnce.h b/src/core/SkOnce.h
index 2c14942077..ddef0d56c4 100644
--- a/src/core/SkOnce.h
+++ b/src/core/SkOnce.h
@@ -129,7 +129,7 @@ void AnnotateBenignRace(const char* file, int line, const volatile void* mem, co
// This is our fast path, called all the time. We do really want it to be inlined.
template <typename Arg>
inline void SkOnce(SkOnceFlag* once, void (*f)(Arg), Arg arg) {
- ANNOTATE_BENIGN_RACE(once->done, "Don't worry TSAN, we're sure this is safe.");
+ ANNOTATE_BENIGN_RACE(&(once->done), "Don't worry TSAN, we're sure this is safe.");
if (!once->done) {
sk_once_slow(once, f, arg);
}