adjust slot count for 10240 byte size class

This commit is contained in:
Daniel Micay 2018-08-23 17:56:17 -04:00
parent b7b353a54e
commit 127f110126
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ size_class_slots = [
16, 16, 16, 16,
8, 8, 8, 8,
8, 8, 8, 8,
5, 6, 4, 4
6, 6, 4, 4
]
print("size class", "worst case internal fragmentation", sep=", ")

View File

@ -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 */ 5, 6, 4, 4
/* 2048 */ 6, 6, 4, 4
};
#define N_SIZE_CLASSES (sizeof(size_classes) / sizeof(size_classes[0]))