[sanitizer] Change SizeClassAllocator32 to accept just one template
authorKostya Kortchinsky <kostyak@google.com>
Mon, 15 May 2017 14:47:19 +0000 (14:47 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Mon, 15 May 2017 14:47:19 +0000 (14:47 +0000)
commitdc646a0889882061f77723efdcc848d0ec53a27a
tree224caa0e7a66d408cad3c683b32a41bfe2936e8d
parent167f8b69e339a236f899b9277c17e3f6ce645594
[sanitizer] Change SizeClassAllocator32 to accept just one template

Summary:
With rL279771, SizeClassAllocator64 was changed to accept only one template
instead of 5, for the following reasons: "First, this will make the mangled
names shorter. Second, this will make adding more parameters simpler". This
patch mirrors that work for SizeClassAllocator32.

This is in preparation for introducing the randomization of chunks in the
32-bit SizeClassAllocator in a later patch.

Reviewers: kcc, alekseyshl, dvyukov

Reviewed By: alekseyshl

Subscribers: llvm-commits, kubamracek

Differential Revision: https://reviews.llvm.org/D33141

llvm-svn: 303071
compiler-rt/lib/asan/asan_allocator.h
compiler-rt/lib/lsan/lsan_allocator.h
compiler-rt/lib/msan/msan_allocator.cc
compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h
compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h
compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
compiler-rt/lib/scudo/scudo_allocator.h
compiler-rt/lib/tsan/rtl/tsan_rtl.h