summaryrefslogtreecommitdiffstats
path: root/test/integration/aligned_alloc.c
diff options
context:
space:
mode:
authorJason Evans <je@facebook.com>2010-10-19 00:45:40 (GMT)
committerJason Evans <je@facebook.com>2010-10-19 00:45:40 (GMT)
commit21fb95bba6ea922e0523f269c0d9a32640047a29 (patch)
treea9f6a326f01bdac213165848cd689c0bc64a481d /test/integration/aligned_alloc.c
parent088e6a0a37e197c8db16e3d4c518a5eb762e7657 (diff)
downloadjemalloc-21fb95bba6ea922e0523f269c0d9a32640047a29.zip
jemalloc-21fb95bba6ea922e0523f269c0d9a32640047a29.tar.gz
jemalloc-21fb95bba6ea922e0523f269c0d9a32640047a29.tar.bz2
Fix a bug in arena_dalloc_bin_run().
Fix the newsize argument to arena_run_trim_tail() that arena_dalloc_bin_run() passes. Previously, oldsize-newsize (i.e. the complement) was passed, which could erroneously cause dirty pages to be returned to the clean available runs tree. Prior to the CHUNK_MAP_ZEROED --> CHUNK_MAP_UNZEROED conversion, this bug merely caused dirty pages to be unaccounted for (and therefore never get purged), but with CHUNK_MAP_UNZEROED, this could cause dirty pages to be treated as zeroed (i.e. memory corruption).
Diffstat (limited to 'test/integration/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions