diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-03-21 16:55:17 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-03-21 16:55:17 +0000 |
commit | 4536cb1fa7734133f404acb413589d7a6d314f4a (patch) | |
tree | 6ba3e36944e2ea01e85ab7f962c231d0aaa163b3 /lib/tsan/rtl/tsan_rtl_report.cc | |
parent | 0dc47b652dfbe0d61d153eded02bae9487a7b539 (diff) |
tsan: better reporting of thread leaks
1. do not report running threads as leaks
2. aggregate leaked threads by creation stack
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_rtl_report.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_rtl_report.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tsan/rtl/tsan_rtl_report.cc b/lib/tsan/rtl/tsan_rtl_report.cc index 50c531177..fd61f4a43 100644 --- a/lib/tsan/rtl/tsan_rtl_report.cc +++ b/lib/tsan/rtl/tsan_rtl_report.cc @@ -365,6 +365,10 @@ void ScopedReport::AddSleep(u32 stack_id) { } #endif +void ScopedReport::SetCount(int count) { + rep_->count = count; +} + const ReportDesc *ScopedReport::GetReport() const { return rep_; } |