[llvm-commits] [compiler-rt] r162042 - in /compiler-rt/trunk/lib/tsan/rtl: tsan_report.cc tsan_rtl.cc tsan_rtl_thread.cc
Dmitry Vyukov
dvyukov at google.com
Thu Aug 16 12:36:45 PDT 2012
Author: dvyukov
Date: Thu Aug 16 14:36:45 2012
New Revision: 162042
URL: http://llvm.org/viewvc/llvm-project?rev=162042&view=rev
Log:
tsan: improve Go report format + fix build
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc?rev=162042&r1=162041&r2=162042&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc Thu Aug 16 14:36:45 2012
@@ -137,6 +137,7 @@
TsanPrintf(" %s()\n %s:%d +0x%zx\n",
ent->func, ent->file, ent->line, (void*)ent->offset);
}
+ TsanPrintf("\n");
}
static void PrintMop(const ReportMop *mop, bool first) {
@@ -157,7 +158,7 @@
void PrintReport(const ReportDesc *rep) {
TsanPrintf("==================\n");
- TsanPrintf("WARNING: DATA RACE at %p\n", (void*)rep->mops[0]->addr);
+ TsanPrintf("WARNING: DATA RACE\n");
for (uptr i = 0; i < rep->mops.Size(); i++)
PrintMop(rep->mops[i], i == 0);
for (uptr i = 0; i < rep->threads.Size(); i++)
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc?rev=162042&r1=162041&r2=162042&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc Thu Aug 16 14:36:45 2012
@@ -164,7 +164,9 @@
return;
is_initialized = true;
ScopedInRtl in_rtl;
+#ifndef TSAN_GO
InitializeAllocator();
+#endif
InitializeInterceptors();
const char *env = InitializePlatform();
InitializeMutex();
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc?rev=162042&r1=162041&r2=162042&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc Thu Aug 16 14:36:45 2012
@@ -238,7 +238,9 @@
}
tctx->epoch1 = thr->fast_state.epoch();
+#ifndef TSAN_GO
AlloctorThreadFinish(thr);
+#endif
thr->~ThreadState();
StatAggregate(ctx->stat, thr->stat);
tctx->thr = 0;
More information about the llvm-commits
mailing list