summaryrefslogtreecommitdiff
path: root/lib/tsan/rtl
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-09-25 12:35:47 +0000
committerAlexey Samsonov <samsonov@google.com>2012-09-25 12:35:47 +0000
commit68bdcc4db8802c9a6f72d0e684a336ab92a3785b (patch)
tree946287649c7365db2acd5fc9bf5187b9832eaf9f /lib/tsan/rtl
parentb8cabab1509e7025ac57cd2429bc637edebdee8f (diff)
downloadcompiler-rt-68bdcc4db8802c9a6f72d0e684a336ab92a3785b.tar.gz
[TSan] fork external symbolizer before starting internal threads
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl')
-rw-r--r--lib/tsan/rtl/tsan_rtl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tsan/rtl/tsan_rtl.cc b/lib/tsan/rtl/tsan_rtl.cc
index 6b0c14eac..33afe3c9e 100644
--- a/lib/tsan/rtl/tsan_rtl.cc
+++ b/lib/tsan/rtl/tsan_rtl.cc
@@ -183,15 +183,15 @@ void Initialize(ThreadState *thr) {
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",