From 56e4c7e042515d2f5d476a1d01cc5a3ee0341cc3 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 23 Aug 2018 17:42:17 -0400 Subject: [PATCH] adjust slot count for 224 byte size class --- calculate_waste.py | 2 +- malloc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/calculate_waste.py b/calculate_waste.py index 95a2223..d7f7f36 100755 --- a/calculate_waste.py +++ b/calculate_waste.py @@ -15,7 +15,7 @@ size_classes = [ size_class_slots = [ 256, 128, 128, 64, 51, 42, 36, 64, - 51, 64, 64, 64, + 51, 64, 54, 64, 64, 64, 64, 64, 64, 64, 64, 64, 16, 16, 16, 16, diff --git a/malloc.c b/malloc.c index d46ef33..da73807 100644 --- a/malloc.c +++ b/malloc.c @@ -152,7 +152,7 @@ static const uint16_t size_classes[] = { static const uint16_t size_class_slots[] = { /* 16 */ 256, 128, 128, 64, 51, 42, 36, 64, - /* 32 */ 51, 64, 64, 64, + /* 32 */ 51, 64, 54, 64, /* 64 */ 64, 64, 64, 64, /* 128 */ 64, 64, 64, 64, /* 256 */ 16, 16, 16, 16,