cellmalloc: Do not allocate first block for all arenas, some of them might not be used at all
This commit is contained in:
parent
1cf753bbe3
commit
c7acfe75f4
|
|
@ -173,7 +173,6 @@ cellarena_t *cellinit( const char *arenaname, const int cellsize, const int alig
|
||||||
|
|
||||||
pthread_mutex_init(&ca->mutex, NULL);
|
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)
|
while (ca->freecount < ca->minfree)
|
||||||
new_cellblock(ca); /* more until minfree is full */
|
new_cellblock(ca); /* more until minfree is full */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue