mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-20 02:45:50 +03:00
Modify pages_map() to support mapping uncommitted virtual memory.
If the OS overcommits: - Commit all mappings in pages_map() regardless of whether the caller requested committed memory. - Linux-specific: Specify MAP_NORESERVE to avoid unfortunate interactions with heuristic overcommit mode during fork(2). This resolves #193.
This commit is contained in:
parent
dc391adc65
commit
c2f970c32b
7 changed files with 117 additions and 27 deletions
|
|
@ -1272,6 +1272,7 @@ malloc_init_hard_a0_locked(tsd_t *tsd)
|
|||
abort();
|
||||
}
|
||||
}
|
||||
pages_boot();
|
||||
if (base_boot())
|
||||
return (true);
|
||||
if (chunk_boot())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue