diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-03-20 09:26:46 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-03-20 09:26:46 +0000 |
commit | 4b450f46cac42d473ffa4ff2d8d1395706b9c934 (patch) | |
tree | 7bf2a7730f219f52e1198a2565d43ff3292834ba /lib/sanitizer_common/sanitizer_allocator.h | |
parent | 89c1384464848c1ad041becf8b97936fa10de21b (diff) | |
download | compiler-rt-4b450f46cac42d473ffa4ff2d8d1395706b9c934.tar.gz compiler-rt-4b450f46cac42d473ffa4ff2d8d1395706b9c934.tar.bz2 compiler-rt-4b450f46cac42d473ffa4ff2d8d1395706b9c934.tar.xz |
asan/tsan: reduce per-thread memory allocator caches
256 blocks (which is 512 in reallity) seems to be too big cache,
reducing the size reduces memory consumption but does not degrade performance.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_allocator.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator.h b/lib/sanitizer_common/sanitizer_allocator.h index 45c93da0..d45762f0 100644 --- a/lib/sanitizer_common/sanitizer_allocator.h +++ b/lib/sanitizer_common/sanitizer_allocator.h @@ -189,7 +189,7 @@ class SizeClassMap { } }; -typedef SizeClassMap<17, 256, 16> DefaultSizeClassMap; +typedef SizeClassMap<17, 128, 16> DefaultSizeClassMap; typedef SizeClassMap<17, 64, 14> CompactSizeClassMap; template<class SizeClassAllocator> struct SizeClassAllocatorLocalCache; |