diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-03-20 13:50:47 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-03-20 13:50:47 +0000 |
commit | ae4cf313552e707c4a21116ef67c4f389a442aa6 (patch) | |
tree | f918d6f6ef3b4af85bcde0436cd706a77bd8233e /lib/tsan/rtl/tsan_mutexset.h | |
parent | cab13157ffa88ab123f2a653b9affdc8cb73bcd9 (diff) | |
download | compiler-rt-ae4cf313552e707c4a21116ef67c4f389a442aa6.tar.gz compiler-rt-ae4cf313552e707c4a21116ef67c4f389a442aa6.tar.bz2 compiler-rt-ae4cf313552e707c4a21116ef67c4f389a442aa6.tar.xz |
tsan: reduce size of mutexsets from 64 to 16 mutexes
overflow is handled anyway
saves memory because each thread holds 1024 mutexsets
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_mutexset.h')
-rw-r--r-- | lib/tsan/rtl/tsan_mutexset.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsan/rtl/tsan_mutexset.h b/lib/tsan/rtl/tsan_mutexset.h index 09223ff6..eebfd4d7 100644 --- a/lib/tsan/rtl/tsan_mutexset.h +++ b/lib/tsan/rtl/tsan_mutexset.h @@ -22,7 +22,7 @@ class MutexSet { public: // Holds limited number of mutexes. // The oldest mutexes are discarded on overflow. - static const uptr kMaxSize = 64; + static const uptr kMaxSize = 16; struct Desc { u64 id; u64 epoch; |