From c7acfe75f4beef959b14daec265d363de1108463 Mon Sep 17 00:00:00 2001 From: Heikki Hannikainen Date: Sun, 6 Sep 2020 14:44:50 +0300 Subject: [PATCH] cellmalloc: Do not allocate first block for all arenas, some of them might not be used at all --- src/cellmalloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cellmalloc.c b/src/cellmalloc.c index b24a768..7ef5c71 100644 --- a/src/cellmalloc.c +++ b/src/cellmalloc.c @@ -173,7 +173,6 @@ cellarena_t *cellinit( const char *arenaname, const int cellsize, const int alig pthread_mutex_init(&ca->mutex, NULL); - new_cellblock(ca); /* First block of cells, not yet need to be mutex protected */ while (ca->freecount < ca->minfree) new_cellblock(ca); /* more until minfree is full */