diff options
| author | Jason Evans <jasone@FreeBSD.org> | 2016-06-09 06:10:20 +0000 |
|---|---|---|
| committer | Jason Evans <jasone@FreeBSD.org> | 2016-06-09 06:10:20 +0000 |
| commit | 62b2691e488cb1a7e79b8021110df5777440d23c (patch) | |
| tree | 603886e46b03ed902e588ab1478a0fe1ee83f7c1 /contrib/jemalloc/src/chunk_mmap.c | |
| parent | 4c1054027451b2e0cf9b3c4f390763cba5fdf383 (diff) | |
Notes
Diffstat (limited to 'contrib/jemalloc/src/chunk_mmap.c')
| -rw-r--r-- | contrib/jemalloc/src/chunk_mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/jemalloc/src/chunk_mmap.c b/contrib/jemalloc/src/chunk_mmap.c index f95ae756fd6c1..73fc497afbbad 100644 --- a/contrib/jemalloc/src/chunk_mmap.c +++ b/contrib/jemalloc/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); |
