mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 18:47:19 +03:00
Add alignment support to chunk_alloc().
This commit is contained in:
parent
c5851eaf6e
commit
eae269036c
9 changed files with 87 additions and 138 deletions
|
|
@ -32,7 +32,7 @@ base_pages_alloc(size_t minsize)
|
|||
assert(minsize != 0);
|
||||
csize = CHUNK_CEILING(minsize);
|
||||
zero = false;
|
||||
base_pages = chunk_alloc(csize, true, &zero);
|
||||
base_pages = chunk_alloc(csize, chunksize, true, &zero);
|
||||
if (base_pages == NULL)
|
||||
return (true);
|
||||
base_next_addr = base_pages;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue