diff options
author | Mike Hommey <mh@glandium.org> | 2012-04-10 17:50:33 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2012-04-10 21:51:39 (GMT) |
commit | eae269036c9f702d9fa9be497a1a2aa1be13a29e (patch) | |
tree | 7263c13dc215dc2ca5553082b47caee7bb2099cb /src/arena.c | |
parent | c5851eaf6e0edb35a499d62d30199e336da5ccb6 (diff) | |
download | jemalloc-eae269036c9f702d9fa9be497a1a2aa1be13a29e.zip jemalloc-eae269036c9f702d9fa9be497a1a2aa1be13a29e.tar.gz jemalloc-eae269036c9f702d9fa9be497a1a2aa1be13a29e.tar.bz2 |
Add alignment support to chunk_alloc().
Diffstat (limited to 'src/arena.c')
-rw-r--r-- | src/arena.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arena.c b/src/arena.c index 6444099..c84aaf4 100644 --- a/src/arena.c +++ b/src/arena.c @@ -357,7 +357,8 @@ arena_chunk_alloc(arena_t *arena) zero = false; malloc_mutex_unlock(&arena->lock); - chunk = (arena_chunk_t *)chunk_alloc(chunksize, false, &zero); + chunk = (arena_chunk_t *)chunk_alloc(chunksize, chunksize, + false, &zero); malloc_mutex_lock(&arena->lock); if (chunk == NULL) return (NULL); |