mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-29 06:12:11 +03:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue