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 | 144eafd9ee88eb1ec80c4beb82e95a134ad0738c (patch) | |
tree | 29aaed0bde573a69eb691de52cac4465e5bfdfbe /compiler-rt/lib/tsan/rtl/tsan_stat.h | |
parent | c46f7d1883144b3c94f008ed902d6bc4c81a21f8 (diff) | |
download | bcm5719-llvm-144eafd9ee88eb1ec80c4beb82e95a134ad0738c.tar.gz bcm5719-llvm-144eafd9ee88eb1ec80c4beb82e95a134ad0738c.zip |
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.
llvm-svn: 268782
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_stat.h')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_stat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_stat.h b/compiler-rt/lib/tsan/rtl/tsan_stat.h index 8ea32048e14..8447dd84fc1 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_stat.h +++ b/compiler-rt/lib/tsan/rtl/tsan_stat.h @@ -173,6 +173,7 @@ enum StatType { StatMtxFired, StatMtxRacy, StatMtxFD, + StatMtxGlobalProc, // This must be the last. StatCnt |