mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-21 03:15:38 +03:00
Add support for user-specified chunk allocators/deallocators.
Add new mallctl endpoints "arena<i>.chunk.alloc" and "arena<i>.chunk.dealloc" to allow userspace to configure jemalloc's chunk allocator and deallocator on a per-arena basis.
This commit is contained in:
parent
4bbd11b789
commit
fb7fe50a88
16 changed files with 283 additions and 45 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, chunksize, true, &zero,
|
||||
base_pages = chunk_alloc(NULL, csize, chunksize, true, &zero,
|
||||
chunk_dss_prec_get());
|
||||
if (base_pages == NULL)
|
||||
return (true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue