[compiler-rt] r301001 - [tsan] Track external API accesses as 1-byte accesses (instead of 8-byte)
Kuba Mracek via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 21 10:21:18 PDT 2017
Author: kuba.brecka
Date: Fri Apr 21 12:21:18 2017
New Revision: 301001
URL: http://llvm.org/viewvc/llvm-project?rev=301001&view=rev
Log:
[tsan] Track external API accesses as 1-byte accesses (instead of 8-byte)
It doesn't really make sense to track them as 8-byte accesses.
Differential Revision: https://reviews.llvm.org/D32359
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_external.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_external.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_external.cc?rev=301001&r1=301000&r2=301001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_external.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_external.cc Fri Apr 21 12:21:18 2017
@@ -61,7 +61,7 @@ void __tsan_external_read(void *addr, vo
if (caller_pc) FuncEntry(thr, (uptr)caller_pc);
bool in_ignored_lib;
if (!caller_pc || !libignore()->IsIgnored((uptr)caller_pc, &in_ignored_lib)) {
- MemoryRead(thr, CALLERPC, (uptr)addr, kSizeLog8);
+ MemoryRead(thr, CALLERPC, (uptr)addr, kSizeLog1);
}
if (caller_pc) FuncExit(thr);
thr->external_tag = 0;
@@ -75,7 +75,7 @@ void __tsan_external_write(void *addr, v
if (caller_pc) FuncEntry(thr, (uptr)caller_pc);
bool in_ignored_lib;
if (!caller_pc || !libignore()->IsIgnored((uptr)caller_pc, &in_ignored_lib)) {
- MemoryWrite(thr, CALLERPC, (uptr)addr, kSizeLog8);
+ MemoryWrite(thr, CALLERPC, (uptr)addr, kSizeLog1);
}
if (caller_pc) FuncExit(thr);
thr->external_tag = 0;
More information about the llvm-commits
mailing list