summaryrefslogtreecommitdiffstats
path: root/test/integration/aligned_alloc.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2012-05-11 03:59:39 (GMT)
committerJason Evans <jasone@canonware.com>2012-05-11 04:49:43 (GMT)
commitd8ceef6c5558fdab8f9448376ae065a9e5ffcbdd (patch)
treee00e21b3cd41a4f7e3078a2c9b4c3e29183f363b /test/integration/aligned_alloc.c
parent30fe12b866edbc2cf9aaef299063b392ea125aac (diff)
downloadjemalloc-d8ceef6c5558fdab8f9448376ae065a9e5ffcbdd.zip
jemalloc-d8ceef6c5558fdab8f9448376ae065a9e5ffcbdd.tar.gz
jemalloc-d8ceef6c5558fdab8f9448376ae065a9e5ffcbdd.tar.bz2
Fix large calloc() zeroing bugs.
Refactor code such that arena_mapbits_{large,small}_set() always preserves the unzeroed flag, and manually manipulate the unzeroed flag in the one case where it actually gets reset (in arena_chunk_purge()). This fixes unzeroed preservation bugs in arena_run_split() and arena_ralloc_large_grow(). These bugs caused large calloc() to return non-zeroed memory under some circumstances.
Diffstat (limited to 'test/integration/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions