use 1 slot for all extended size classes

This reduces memory usage and improves security in combination with the
guard slab feature.
This commit is contained in:
Daniel Micay 2021-05-01 22:10:20 -04:00
parent 3952645318
commit 8bfa1a7dd5
2 changed files with 5 additions and 5 deletions

View file

@ -144,7 +144,7 @@ static const u16 size_class_slots[] = {
/* 1024 */ 8, 8, 8, 8,
/* 2048 */ 6, 5, 4, 4,
#if CONFIG_EXTENDED_SIZE_CLASSES
/* 4096 */ 2, 2, 2, 2,
/* 4096 */ 1, 1, 1, 1,
/* 8192 */ 1, 1, 1, 1,
/* 16384 */ 1, 1, 1, 1,
#endif