diff options
author | Jason Evans <jasone@canonware.com> | 2012-04-21 13:33:48 -0700 |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2012-04-21 13:33:48 -0700 |
commit | 8f0e0eb1c01d5d934586ea62e519ca8b8637aebc (patch) | |
tree | c0281d50a3731242730249b7285a67fec4536428 /include/jemalloc/internal/chunk_mmap.h | |
parent | 606f1fdc3cdbc700717133ca56685313caea24bb (diff) | |
download | jemalloc-8f0e0eb1c01d5d934586ea62e519ca8b8637aebc.tar.gz |
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 'include/jemalloc/internal/chunk_mmap.h')
-rw-r--r-- | include/jemalloc/internal/chunk_mmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/chunk_mmap.h b/include/jemalloc/internal/chunk_mmap.h index 2d01ac2..8224430 100644 --- a/include/jemalloc/internal/chunk_mmap.h +++ b/include/jemalloc/internal/chunk_mmap.h @@ -11,7 +11,7 @@ void pages_purge(void *addr, size_t length); -void *chunk_alloc_mmap(size_t size, size_t alignment); +void *chunk_alloc_mmap(size_t size, size_t alignment, bool *zero); bool chunk_dealloc_mmap(void *chunk, size_t size); bool chunk_mmap_boot(void); |