From ccbdea956f24c2c0021945b93cf9311690af9993 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 20 Mar 2013 11:22:03 +0000 Subject: [PATCH] tsan: fix build llvm-svn: 177513 --- compiler-rt/lib/tsan/rtl/tsan_rtl.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc index 6efb2877c563..df41f1886e7b 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc +++ b/compiler-rt/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"