mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
adjust slot count for 12288 byte size class
This commit is contained in:
parent
127f110126
commit
a874a61099
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ size_class_slots = [
|
|||
16, 16, 16, 16,
|
||||
8, 8, 8, 8,
|
||||
8, 8, 8, 8,
|
||||
6, 6, 4, 4
|
||||
6, 5, 4, 4
|
||||
]
|
||||
|
||||
print("size class", "worst case internal fragmentation", sep=", ")
|
||||
|
|
2
malloc.c
2
malloc.c
|
@ -158,7 +158,7 @@ static const uint16_t size_class_slots[] = {
|
|||
/* 256 */ 16, 16, 16, 16,
|
||||
/* 512 */ 8, 8, 8, 8,
|
||||
/* 1024 */ 8, 8, 8, 8,
|
||||
/* 2048 */ 6, 6, 4, 4
|
||||
/* 2048 */ 6, 5, 4, 4
|
||||
};
|
||||
|
||||
#define N_SIZE_CLASSES (sizeof(size_classes) / sizeof(size_classes[0]))
|
||||
|
|
Loading…
Add table
Reference in a new issue