[llvm-commits] [compiler-rt] r164600 - /compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc
Alexey Samsonov
samsonov at google.com
Tue Sep 25 05:35:47 PDT 2012
Author: samsonov
Date: Tue Sep 25 07:35:47 2012
New Revision: 164600
URL: http://llvm.org/viewvc/llvm-project?rev=164600&view=rev
Log:
[TSan] fork external symbolizer before starting internal threads
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc
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=164600&r1=164599&r2=164600&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc Tue Sep 25 07:35:47 2012
@@ -183,15 +183,15 @@
ctx->dead_list_tail = 0;
InitializeFlags(&ctx->flags, env);
InitializeSuppressions();
- InitializeMemoryProfile();
- InitializeMemoryFlush();
-
#ifndef TSAN_GO
+ // Initialize external symbolizer before internal threads are started.
const char *external_symbolizer = flags()->external_symbolizer_path;
if (external_symbolizer != 0 && external_symbolizer[0] != '\0') {
InitializeExternalSymbolizer(external_symbolizer);
}
#endif
+ InitializeMemoryProfile();
+ InitializeMemoryFlush();
if (ctx->flags.verbosity)
TsanPrintf("***** Running under ThreadSanitizer v2 (pid %d) *****\n",
More information about the llvm-commits
mailing list