summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_rtl.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
index 6efb2877c56..df41f1886e7 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"
OpenPOWER on IntegriCloud