diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2016-05-06 19:35:22 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2016-05-06 19:35:22 +0000 |
commit | a7f0947760499f1a12d966e7ff307c8b71bafc93 (patch) | |
tree | 8a146b02b42142dd7bd5884fe5c3ce42c5d03314 /lib/tsan/rtl/tsan_stat.cc | |
parent | f859b82b71d49dc61b7a1123766f28b5098490c1 (diff) |
tsan: fix a crash
Fixes crash reported in:
https://bugs.chromium.org/p/v8/issues/detail?id=4995
The problem is that we don't have a processor in a free interceptor
during thread exit.
The crash was introduced by introduction of Processors.
However, previously we silently leaked memory which wasn't any better.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@268782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_stat.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_stat.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tsan/rtl/tsan_stat.cc b/lib/tsan/rtl/tsan_stat.cc index a5cca9679..d1d6ed24d 100644 --- a/lib/tsan/rtl/tsan_stat.cc +++ b/lib/tsan/rtl/tsan_stat.cc @@ -168,6 +168,7 @@ void StatOutput(u64 *stat) { name[StatMtxFired] = " FiredSuppressions "; name[StatMtxRacy] = " RacyStacks "; name[StatMtxFD] = " FD "; + name[StatMtxGlobalProc] = " GlobalProc "; Printf("Statistics:\n"); for (int i = 0; i < StatCnt; i++) |