tsan: better reporting of thread leaks
authorDmitry Vyukov <dvyukov@google.com>
Thu, 21 Mar 2013 16:55:17 +0000 (16:55 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 21 Mar 2013 16:55:17 +0000 (16:55 +0000)
commitebf63d0095ab60ea940e934c9cc0f62c5abd06b5
treed5ff091b758840b736134aa4c9f612998f86e022
parentc4ca6e271c4a5b43ba8519119c72e4f6d7245aa9
tsan: better reporting of thread leaks
1. do not report running threads as leaks
2. aggregate leaked threads by creation stack

llvm-svn: 177647
compiler-rt/lib/tsan/lit_tests/thread_leak3.c
compiler-rt/lib/tsan/lit_tests/thread_leak4.c [new file with mode: 0644]
compiler-rt/lib/tsan/lit_tests/thread_leak5.c [new file with mode: 0644]
compiler-rt/lib/tsan/rtl/tsan_report.cc
compiler-rt/lib/tsan/rtl/tsan_report.h
compiler-rt/lib/tsan/rtl/tsan_rtl.h
compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc
compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc