[sanitizer] allocator: remove kPopulateSize and only use SizeClassMap::MaxCached...
authorKostya Serebryany <kcc@google.com>
Thu, 21 Jul 2016 18:47:53 +0000 (18:47 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 21 Jul 2016 18:47:53 +0000 (18:47 +0000)
commit35eeea707e432c9b365ee5aef87ece522c935486
tree5fbd8762ef922f63fbd5f5cd726fef38d07e0ebe
parentab1e7865030ecc3909634a13991a923f29927fb3
[sanitizer] allocator: remove kPopulateSize and only use SizeClassMap::MaxCached; ensure that TransferBatch size is a power of two, refactor TransferBatch creation/destruction into separate functions.

llvm-svn: 276318
compiler-rt/lib/sanitizer_common/sanitizer_allocator_local_cache.h
compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h
compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h
compiler-rt/lib/sanitizer_common/sanitizer_allocator_size_class_map.h
compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc