adjust slot count for 10240 byte size class
This commit is contained in:
parent
b7b353a54e
commit
127f110126
@ -21,7 +21,7 @@ size_class_slots = [
|
|||||||
16, 16, 16, 16,
|
16, 16, 16, 16,
|
||||||
8, 8, 8, 8,
|
8, 8, 8, 8,
|
||||||
8, 8, 8, 8,
|
8, 8, 8, 8,
|
||||||
5, 6, 4, 4
|
6, 6, 4, 4
|
||||||
]
|
]
|
||||||
|
|
||||||
print("size class", "worst case internal fragmentation", sep=", ")
|
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,
|
/* 256 */ 16, 16, 16, 16,
|
||||||
/* 512 */ 8, 8, 8, 8,
|
/* 512 */ 8, 8, 8, 8,
|
||||||
/* 1024 */ 8, 8, 8, 8,
|
/* 1024 */ 8, 8, 8, 8,
|
||||||
/* 2048 */ 5, 6, 4, 4
|
/* 2048 */ 6, 6, 4, 4
|
||||||
};
|
};
|
||||||
|
|
||||||
#define N_SIZE_CLASSES (sizeof(size_classes) / sizeof(size_classes[0]))
|
#define N_SIZE_CLASSES (sizeof(size_classes) / sizeof(size_classes[0]))
|
||||||
|
Loading…
Reference in New Issue
Block a user