From 31056968fc2863f5a66e0a537b90435714af4861 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 20 Mar 2013 09:26:46 +0000 Subject: [PATCH] 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. llvm-svn: 177502 --- compiler-rt/lib/sanitizer_common/sanitizer_allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h index 45c93da..d45762f 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h +++ b/compiler-rt/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 struct SizeClassAllocatorLocalCache; -- 2.7.4