[compiler-rt] r184189 - [lsan] Set current_thread_tid correctly for main thread.
Sergey Matveev
earthdok at google.com
Tue Jun 18 07:44:46 PDT 2013
Author: smatveev
Date: Tue Jun 18 09:44:45 2013
New Revision: 184189
URL: http://llvm.org/viewvc/llvm-project?rev=184189&view=rev
Log:
[lsan] Set current_thread_tid correctly for main thread.
Modified:
compiler-rt/trunk/lib/lsan/lsan.cc
Modified: compiler-rt/trunk/lib/lsan/lsan.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan.cc?rev=184189&r1=184188&r2=184189&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan.cc Tue Jun 18 09:44:45 2013
@@ -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;
More information about the llvm-commits
mailing list