mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-19 02:15:38 +03:00
Attempt mmap-based in-place huge reallocation.
Attempt mmap-based in-place huge reallocation by plumbing new_addr into chunk_alloc_mmap(). This can dramatically speed up incremental huge reallocation. This resolves #335.
This commit is contained in:
parent
5ec703dd33
commit
c7a9a6c86b
3 changed files with 12 additions and 13 deletions
|
|
@ -9,8 +9,8 @@
|
|||
/******************************************************************************/
|
||||
#ifdef JEMALLOC_H_EXTERNS
|
||||
|
||||
void *chunk_alloc_mmap(size_t size, size_t alignment, bool *zero,
|
||||
bool *commit);
|
||||
void *chunk_alloc_mmap(void *new_addr, size_t size, size_t alignment,
|
||||
bool *zero, bool *commit);
|
||||
bool chunk_dalloc_mmap(void *chunk, size_t size);
|
||||
|
||||
#endif /* JEMALLOC_H_EXTERNS */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue