cellmalloc: Do not allocate first block for all arenas, some of them might not be used at all

This commit is contained in:
Heikki Hannikainen 2020-09-06 14:44:50 +03:00
parent 1cf753bbe3
commit c7acfe75f4
1 changed files with 0 additions and 1 deletions

View File

@ -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 */