mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-10-01 01:36:01 -04:00
set slab cache sizes based on the largest slab
This commit is contained in:
parent
82440e78d9
commit
067b3c864f
@ -108,7 +108,7 @@ static const size_t min_align = 16;
|
|||||||
#define MIN_SLAB_SIZE_CLASS_SHIFT 4
|
#define MIN_SLAB_SIZE_CLASS_SHIFT 4
|
||||||
|
|
||||||
#if !CONFIG_EXTENDED_SIZE_CLASSES
|
#if !CONFIG_EXTENDED_SIZE_CLASSES
|
||||||
static const size_t MAX_SLAB_SIZE_CLASS = 16384;
|
static const size_t MAX_SLAB_SIZE_CLASS = 65536;
|
||||||
#define MAX_SLAB_SIZE_CLASS_SHIFT 14
|
#define MAX_SLAB_SIZE_CLASS_SHIFT 14
|
||||||
#else
|
#else
|
||||||
static const size_t MAX_SLAB_SIZE_CLASS = 131072;
|
static const size_t MAX_SLAB_SIZE_CLASS = 131072;
|
||||||
|
Loading…
Reference in New Issue
Block a user