arena_chunk_purge() arena->nactive fix.

Update arena->nactive when pseudo-allocating runs in
arena_chunk_purge(), since arena_run_dalloc() subtracts from
arena->nactive.
This commit is contained in:
Jason Evans 2010-03-15 12:43:07 -07:00
parent 992242c545
commit d9ef75fed4

View File

@ -570,6 +570,7 @@ arena_chunk_purge(arena_t *arena, arena_chunk_t *chunk)
chunk->map[pageind + npages - 1].bits |=
(CHUNK_MAP_LARGE |
CHUNK_MAP_ALLOCATED);
arena->nactive += npages;
/*
* Append to list for later processing.
*/