diff options
author | Jason Evans <jasone@canonware.com> | 2012-04-21 20:33:48 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2012-04-21 20:33:48 (GMT) |
commit | 8f0e0eb1c01d5d934586ea62e519ca8b8637aebc (patch) | |
tree | c0281d50a3731242730249b7285a67fec4536428 /src/chunk_dss.c | |
parent | 606f1fdc3cdbc700717133ca56685313caea24bb (diff) | |
download | jemalloc-8f0e0eb1c01d5d934586ea62e519ca8b8637aebc.zip jemalloc-8f0e0eb1c01d5d934586ea62e519ca8b8637aebc.tar.gz jemalloc-8f0e0eb1c01d5d934586ea62e519ca8b8637aebc.tar.bz2 |
Fix a memory corruption bug in chunk_alloc_dss().
Fix a memory corruption bug in chunk_alloc_dss() that was due to
claiming newly allocated memory is zeroed.
Reverse order of preference between mmap() and sbrk() to prefer mmap().
Clean up management of 'zero' parameter in chunk_alloc*().
Diffstat (limited to 'src/chunk_dss.c')
-rw-r--r-- | src/chunk_dss.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/chunk_dss.c b/src/chunk_dss.c index b05509a..bd4a724 100644 --- a/src/chunk_dss.c +++ b/src/chunk_dss.c @@ -89,7 +89,6 @@ chunk_alloc_dss(size_t size, size_t alignment, bool *zero) malloc_mutex_unlock(&dss_mtx); if (cpad_size != 0) chunk_dealloc(cpad, cpad_size, true); - *zero = true; return (ret); } } while (dss_prev != (void *)-1); |