[PATCH] D32359: [tsan] Track external API accesses as 1-byte accesses (instead of 8-byte)

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 21 10:34:16 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL301001: [tsan] Track external API accesses as 1-byte accesses (instead of 8-byte) (authored by kuba.brecka).

Changed prior to commit:
  https://reviews.llvm.org/D32359?vs=96169&id=96173#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D32359

Files:
  compiler-rt/trunk/lib/tsan/rtl/tsan_external.cc


Index: compiler-rt/trunk/lib/tsan/rtl/tsan_external.cc
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_external.cc
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_external.cc
@@ -61,7 +61,7 @@
   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 @@
   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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32359.96173.patch
Type: text/x-patch
Size: 927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170421/7d66a652/attachment.bin>


More information about the llvm-commits mailing list