diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-03-20 11:22:03 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-03-20 11:22:03 +0000 |
commit | 286c914d37d28df611ae083cac40148cf2622ee7 (patch) | |
tree | 2c8805bb3c0f79a8a7bb640f734c61e2f4d4a712 | |
parent | 9743d74426ae43898e4da55e591b09be18f8aa6e (diff) | |
download | compiler-rt-286c914d37d28df611ae083cac40148cf2622ee7.tar.gz compiler-rt-286c914d37d28df611ae083cac40148cf2622ee7.tar.bz2 compiler-rt-286c914d37d28df611ae083cac40148cf2622ee7.tar.xz |
tsan: fix build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177513 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/tsan/rtl/tsan_rtl.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/tsan/rtl/tsan_rtl.cc b/lib/tsan/rtl/tsan_rtl.cc index 6efb2877..df41f188 100644 --- a/lib/tsan/rtl/tsan_rtl.cc +++ b/lib/tsan/rtl/tsan_rtl.cc @@ -384,15 +384,7 @@ void MemoryAccessImpl(ThreadState *thr, uptr addr, // 'candidates' with 'same' or 'replace', but I think // it's just not worth it (performance- and complexity-wise). - Shadow old(LoadShadow(shadow_mem)); -Printf("MOP %p -> %p %llu\n", addr, shadow_mem, old.raw()); - if (old.raw() == kShadowRodata) { - // Access to .rodata section, no races here. - // Measurements show that it can be 10-20% of all memory accesses. - StatInc(thr, StatMopRodata); - return; - } - + Shadow old(0); if (kShadowCnt == 1) { int idx = 0; #include "tsan_update_shadow_word_inl.h" |