From c59c97c65b5ad7e152b722bdb984aa0adbc2ad99 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 23 Aug 2018 17:53:10 -0400 Subject: [PATCH] adjust slot count for 48 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 d7f7f36..9f3789e 100755 --- a/calculate_waste.py +++ b/calculate_waste.py @@ -14,7 +14,7 @@ size_classes = [ ] size_class_slots = [ - 256, 128, 128, 64, 51, 42, 36, 64, + 256, 128, 85, 64, 51, 42, 36, 64, 51, 64, 54, 64, 64, 64, 64, 64, 64, 64, 64, 64, diff --git a/malloc.c b/malloc.c index da73807..63de7e0 100644 --- a/malloc.c +++ b/malloc.c @@ -151,7 +151,7 @@ static const uint16_t size_classes[] = { }; static const uint16_t size_class_slots[] = { - /* 16 */ 256, 128, 128, 64, 51, 42, 36, 64, + /* 16 */ 256, 128, 85, 64, 51, 42, 36, 64, /* 32 */ 51, 64, 54, 64, /* 64 */ 64, 64, 64, 64, /* 128 */ 64, 64, 64, 64,