[PATCH] D16845: [TSan] Fix PrintMatchedSuppressions: Read hit count for suppression atomically

Mohit Bhakkad via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 3 21:33:08 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL259755: [TSan] Fix PrintMatchedSuppressions: Read hit count for suppression atomically (authored by mohit.bhakkad).

Changed prior to commit:
  http://reviews.llvm.org/D16845?vs=46761&id=46870#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16845

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

Index: compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
@@ -159,8 +159,8 @@
   Printf("ThreadSanitizer: Matched %d suppressions (pid=%d):\n", hit_count,
          (int)internal_getpid());
   for (uptr i = 0; i < matched.size(); i++) {
-    Printf("%d %s:%s\n", matched[i]->hit_count, matched[i]->type,
-           matched[i]->templ);
+    Printf("%d %s:%s\n", atomic_load_relaxed(&matched[i]->hit_count),
+           matched[i]->type, matched[i]->templ);
   }
 }
 }  // namespace __tsan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16845.46870.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160204/0cb9c54b/attachment.bin>


More information about the llvm-commits mailing list