summaryrefslogtreecommitdiffstats
path: root/jemalloc
diff options
context:
space:
mode:
authorJason Evans <je@facebook.com>2010-03-15 19:43:07 (GMT)
committerJason Evans <je@facebook.com>2010-03-15 19:43:07 (GMT)
commitd9ef75fed46a0674f51d0df2a81c737fba38e57c (patch)
treeb26e94362ead58a3ae675c774794ae2d649800ea /jemalloc
parent992242c545cdd9e6098d16e3426fce1844b0e292 (diff)
downloadjemalloc-d9ef75fed46a0674f51d0df2a81c737fba38e57c.zip
jemalloc-d9ef75fed46a0674f51d0df2a81c737fba38e57c.tar.gz
jemalloc-d9ef75fed46a0674f51d0df2a81c737fba38e57c.tar.bz2
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.
Diffstat (limited to 'jemalloc')
-rw-r--r--jemalloc/src/arena.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/jemalloc/src/arena.c b/jemalloc/src/arena.c
index 49d5927..289fac1 100644
--- a/jemalloc/src/arena.c
+++ b/jemalloc/src/arena.c
@@ -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.
*/