summaryrefslogtreecommitdiffstats
path: root/src/arena.c
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2011-11-11 22:41:59 (GMT)
committerJason Evans <je@fb.com>2011-11-11 22:41:59 (GMT)
commit12a488782681cbd740a5f54e0b7e74ea84858e21 (patch)
tree59c18d44437c14e346503efbad056f272cb74707 /src/arena.c
parentfa351d9fdcbbbfe7455279311fdf3d65751a4e75 (diff)
downloadjemalloc-12a488782681cbd740a5f54e0b7e74ea84858e21.zip
jemalloc-12a488782681cbd740a5f54e0b7e74ea84858e21.tar.gz
jemalloc-12a488782681cbd740a5f54e0b7e74ea84858e21.tar.bz2
Fix huge_ralloc to maintain chunk statistics.
Fix huge_ralloc() to properly maintain chunk statistics when using mremap(2).
Diffstat (limited to 'src/arena.c')
-rw-r--r--src/arena.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arena.c b/src/arena.c
index e749c1d..d166ca1 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -569,7 +569,7 @@ arena_chunk_dealloc(arena_t *arena, arena_chunk_t *chunk)
arena->ndirty -= spare->ndirty;
}
malloc_mutex_unlock(&arena->lock);
- chunk_dealloc((void *)spare, chunksize);
+ chunk_dealloc((void *)spare, chunksize, true);
malloc_mutex_lock(&arena->lock);
#ifdef JEMALLOC_STATS
arena->stats.mapped -= chunksize;