summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_stat.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-05-06 19:35:22 +0000
committerDmitry Vyukov <dvyukov@google.com>2016-05-06 19:35:22 +0000
commit144eafd9ee88eb1ec80c4beb82e95a134ad0738c (patch)
tree29aaed0bde573a69eb691de52cac4465e5bfdfbe /compiler-rt/lib/tsan/rtl/tsan_stat.h
parentc46f7d1883144b3c94f008ed902d6bc4c81a21f8 (diff)
downloadbcm5719-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.h1
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
OpenPOWER on IntegriCloud