mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-24 00:41:11 -04:00
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:
parent
3952645318
commit
8bfa1a7dd5
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue