[llvm-commits] [compiler-rt] r172710 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_lfstack.h
Dmitry Vyukov
dvyukov at google.com
Thu Jan 17 04:13:04 PST 2013
Author: dvyukov
Date: Thu Jan 17 06:13:03 2013
New Revision: 172710
URL: http://llvm.org/viewvc/llvm-project?rev=172710&view=rev
Log:
tsan: fix a bug
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_lfstack.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_lfstack.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_lfstack.h?rev=172710&r1=172709&r2=172710&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_lfstack.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_lfstack.h Thu Jan 17 06:13:03 2013
@@ -52,7 +52,7 @@
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))
More information about the llvm-commits
mailing list