diff options
author | Sergey Matveev <earthdok@google.com> | 2013-06-18 14:44:45 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-06-18 14:44:45 +0000 |
commit | 02d7f32f66ef13cedd66a69aad864b6d5a4b81ae (patch) | |
tree | f8f0cdd5c5b402352b5118edcaa2cf1d4fbb2cc3 /lib/lsan/lsan.cc | |
parent | 7028c1ee187302ace4fa3530769458c0b3caf946 (diff) |
[lsan] Set current_thread_tid correctly for main thread.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan/lsan.cc')
-rw-r--r-- | lib/lsan/lsan.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lsan/lsan.cc b/lib/lsan/lsan.cc index 9b83b411f..c917bcc75 100644 --- a/lib/lsan/lsan.cc +++ b/lib/lsan/lsan.cc @@ -48,6 +48,7 @@ void Init() { u32 tid = ThreadCreate(0, 0, true); CHECK_EQ(tid, 0); ThreadStart(tid, GetTid()); + SetCurrentThread(tid); // Start symbolizer process if necessary. const char* external_symbolizer = common_flags()->external_symbolizer_path; |