From e528f67c142b963e1e70d47c5629b29d56d95d9d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 17 Jan 2013 12:13:03 +0000 Subject: [PATCH] tsan: fix a bug llvm-svn: 172710 --- compiler-rt/lib/sanitizer_common/sanitizer_lfstack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_lfstack.h b/compiler-rt/lib/sanitizer_common/sanitizer_lfstack.h index 6790879..e0c88a9 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_lfstack.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_lfstack.h @@ -52,7 +52,7 @@ struct LFStack { if (cur == 0) return 0; T *nxt = cur->next; - u64 cnt = (cmp & kCounterBits); + u64 cnt = (cmp & kCounterMask); u64 xch = (u64)(uptr)nxt | cnt; if (atomic_compare_exchange_weak(&head_, &cmp, xch, memory_order_acquire)) -- 2.7.4