summaryrefslogtreecommitdiffstats
path: root/src/chunk_mmap.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-06-08 18:41:24 (GMT)
committerJason Evans <jasone@canonware.com>2016-06-08 18:41:24 (GMT)
commit3de035335255d553bdb344c32ffdb603816195d8 (patch)
tree24896f5754301439fbfd4c280c71e46e5c830207 /src/chunk_mmap.c
parentf70a254d44c8d30af2cd5d30531fb18fdabaae6d (diff)
parent5271b673b2e93dd655fde6f2ee1ea849da5cb3d2 (diff)
downloadjemalloc-4.2.1.zip
jemalloc-4.2.1.tar.gz
jemalloc-4.2.1.tar.bz2
Merge branch.4.2.1
Diffstat (limited to 'src/chunk_mmap.c')
-rw-r--r--src/chunk_mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk_mmap.c b/src/chunk_mmap.c
index f95ae75..73fc497 100644
--- a/src/chunk_mmap.c
+++ b/src/chunk_mmap.c
@@ -9,7 +9,7 @@ chunk_alloc_mmap_slow(size_t size, size_t alignment, bool *zero, bool *commit)
void *ret;
size_t alloc_size;
- alloc_size = size + alignment;
+ alloc_size = size + alignment - PAGE;
/* Beware size_t wrap-around. */
if (alloc_size < size)
return (NULL);