From 467ba8440fd0b382f6ef7b0034d6db2767b91909 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 24 May 2020 09:36:43 -0400 Subject: [PATCH] add comment explaining slab cache size --- h_malloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/h_malloc.c b/h_malloc.c index 655193c..4968e82 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -107,6 +107,7 @@ struct slab_metadata { static const size_t min_align = 16; #define MIN_SLAB_SIZE_CLASS_SHIFT 4 +// set slab cache size based on the size of the largest slab #if !CONFIG_EXTENDED_SIZE_CLASSES static const size_t MAX_SLAB_SIZE_CLASS = 65536; #define MAX_SLAB_SIZE_CLASS_SHIFT 14