From 067b3c864f8caf24d5ec51f0014e58f285b2eba0 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 24 May 2020 09:31:02 -0400 Subject: [PATCH] set slab cache sizes based on the largest slab --- h_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h_malloc.c b/h_malloc.c index fecc539..655193c 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -108,7 +108,7 @@ static const size_t min_align = 16; #define MIN_SLAB_SIZE_CLASS_SHIFT 4 #if !CONFIG_EXTENDED_SIZE_CLASSES -static const size_t MAX_SLAB_SIZE_CLASS = 16384; +static const size_t MAX_SLAB_SIZE_CLASS = 65536; #define MAX_SLAB_SIZE_CLASS_SHIFT 14 #else static const size_t MAX_SLAB_SIZE_CLASS = 131072;