[llvm-commits] [compiler-rt] r156765 - in /compiler-rt/trunk/lib/tsan/rtl: tsan_mman.cc tsan_rtl.h tsan_rtl_report.cc
Dmitry Vyukov
dvyukov at google.com
Mon May 14 08:28:03 PDT 2012
Author: dvyukov
Date: Mon May 14 10:28:03 2012
New Revision: 156765
URL: http://llvm.org/viewvc/llvm-project?rev=156765&view=rev
Log:
tsan: enabled report suppression for signal-unsafe reports
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_mman.cc
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_mman.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_mman.cc?rev=156765&r1=156764&r2=156765&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_mman.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_mman.cc Mon May 14 10:28:03 2012
@@ -25,7 +25,7 @@
stack.ObtainCurrent(thr, pc);
ScopedReport rep(ReportTypeSignalUnsafe);
rep.AddStack(&stack);
- OutputReport(rep);
+ OutputReport(rep, rep.GetReport()->stacks[0]);
}
void *user_alloc(ThreadState *thr, uptr pc, uptr sz) {
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h?rev=156765&r1=156764&r2=156765&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h Mon May 14 10:28:03 2012
@@ -371,7 +371,8 @@
void Die() NORETURN;
void ReportRace(ThreadState *thr);
-bool OutputReport(const ScopedReport &srep, ReportStack *suppress_stack = 0);
+bool OutputReport(const ScopedReport &srep,
+ const ReportStack *suppress_stack = 0);
bool IsExpectedReport(uptr addr, uptr size);
#if defined(TSAN_DEBUG_OUTPUT) && TSAN_DEBUG_OUTPUT >= 1
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc?rev=156765&r1=156764&r2=156765&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc Mon May 14 10:28:03 2012
@@ -273,7 +273,7 @@
}
}
-bool OutputReport(const ScopedReport &srep, ReportStack *suppress_stack) {
+bool OutputReport(const ScopedReport &srep, const ReportStack *suppress_stack) {
const ReportDesc *rep = srep.GetReport();
bool suppressed = IsSuppressed(rep->typ, suppress_stack);
suppressed = OnReport(rep, suppressed);
More information about the llvm-commits
mailing list