[compiler-rt] r177513 - tsan: fix build
Dmitry Vyukov
dvyukov at google.com
Wed Mar 20 04:22:03 PDT 2013
Author: dvyukov
Date: Wed Mar 20 06:22:03 2013
New Revision: 177513
URL: http://llvm.org/viewvc/llvm-project?rev=177513&view=rev
Log:
tsan: fix build
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc?rev=177513&r1=177512&r2=177513&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc Wed Mar 20 06:22:03 2013
@@ -384,15 +384,7 @@ void MemoryAccessImpl(ThreadState *thr,
// '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"
More information about the llvm-commits
mailing list