This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Change SizeClassAllocator32 to accept just one template
ClosedPublic

Authored by cryptoad on May 12 2017, 10:42 AM.

Details

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.

Event Timeline

cryptoad created this revision.May 12 2017, 10:42 AM
cryptoad updated this revision to Diff 98808.May 12 2017, 11:25 AM

De-duplicate some code in sanitizer_allocator_internal.h.

alekseyshl accepted this revision.May 12 2017, 11:37 AM
This revision is now accepted and ready to land.May 12 2017, 11:37 AM
cryptoad closed this revision.May 15 2017, 8:00 AM