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:
parent
992242c545
commit
d9ef75fed4
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user