From: Dmitry Vyukov Date: Wed, 20 Mar 2013 09:26:46 +0000 (+0000) Subject: asan/tsan: reduce per-thread memory allocator caches X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31056968fc2863f5a66e0a537b90435714af4861;p=platform%2Fupstream%2Fllvm.git 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 --- 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;