From d9ef75fed46a0674f51d0df2a81c737fba38e57c Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Mon, 15 Mar 2010 12:43:07 -0700 Subject: [PATCH] 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. --- jemalloc/src/arena.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jemalloc/src/arena.c b/jemalloc/src/arena.c index 49d59277..289fac1c 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. */