[lsan] Report unsuspended threads
authorVitaly Buka <vitalybuka@google.com>
Wed, 9 May 2018 23:02:14 +0000 (23:02 +0000)
committerVitaly Buka <vitalybuka@google.com>
Wed, 9 May 2018 23:02:14 +0000 (23:02 +0000)
commited43f18b55a1fdf30d73a1c08b273177774fdeee
treea5afe913df953658626bcd91515fec542e0d6c47
parent79e917d117b9caec749360614795cd857c21419a
[lsan] Report unsuspended threads

Summary:
Leak checker needs to suspend all process threads. If we have some running
thread in registry but not suspended we can have false leak report. So we will
report this case here for future debugging.

Reviewers: eugenis

Subscribers: kubamracek, llvm-commits

Differential Revision: https://reviews.llvm.org/D46663

llvm-svn: 331936
compiler-rt/lib/asan/asan_thread.cc
compiler-rt/lib/lsan/lsan_common.cc
compiler-rt/lib/lsan/lsan_common.h
compiler-rt/lib/lsan/lsan_thread.cc