summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/lsan/lsan_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/lsan/lsan_thread.cc')
-rw-r--r--compiler-rt/lib/lsan/lsan_thread.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/lsan/lsan_thread.cc b/compiler-rt/lib/lsan/lsan_thread.cc
index ebec6cdbf14..09eeb9c2498 100644
--- a/compiler-rt/lib/lsan/lsan_thread.cc
+++ b/compiler-rt/lib/lsan/lsan_thread.cc
@@ -92,6 +92,7 @@ void ThreadStart(u32 tid, uptr os_id) {
void ThreadFinish() {
thread_registry->FinishThread(GetCurrentThread());
+ SetCurrentThread(kInvalidTid);
}
ThreadContext *CurrentThreadContext() {
OpenPOWER on IntegriCloud