[scudo] Allow for compile-time choice of the SizeClassMap
authorKostya Kortchinsky <kostyak@google.com>
Wed, 29 Nov 2017 19:52:09 +0000 (19:52 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Wed, 29 Nov 2017 19:52:09 +0000 (19:52 +0000)
commitcf5b4af8200067c9154aa20cf1fb1d4a57c601ff
treefc1c1beeab0d989cebf9ab38e78686228cfc4712
parent2183c3244416dde915aab7ae4348b10b06278f1a
[scudo] Allow for compile-time choice of the SizeClassMap

Summary:
With this change, we allow someone to chose the `SizeClassMap` they want to use
at compile time via a define.

I feel somewhat unimaginative with the name of the defines, so if someone has a
better idea, let me know. I have been alternating between those and
`SCUDO_USE_xxx_SIZECLASSMAP` which is clearer but also longer. The issue with
those is that it wouldn't be consistent with `SCUDO_TSD_EXCLUSIVE` that should
probably become `SCUDO_USE_EXCLUSIVE_TSD` maybe?

Anyway, naming is hard, and I am not sure what makes more sense!

Reviewers: alekseyshl, flowerhack

Reviewed By: alekseyshl

Subscribers: llvm-commits, srhines

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

llvm-svn: 319350
compiler-rt/lib/scudo/scudo_platform.h