diff options
| author | Jason Evans <jasone@canonware.com> | 2016-05-05 17:45:02 -0700 |
|---|---|---|
| committer | Jason Evans <jasone@canonware.com> | 2016-05-05 18:56:17 -0700 |
| commit | c2f970c32b527660a33fa513a76d913c812dcf7c (patch) | |
| tree | b0593fac905797fa543ac77aa5ebd9e1160cb67f /src/jemalloc.c | |
| parent | dc391adc6577b4ed0dac0ce3b1778473e67e4c17 (diff) | |
| download | platform_external_jemalloc_new-c2f970c32b527660a33fa513a76d913c812dcf7c.tar.gz platform_external_jemalloc_new-c2f970c32b527660a33fa513a76d913c812dcf7c.tar.bz2 platform_external_jemalloc_new-c2f970c32b527660a33fa513a76d913c812dcf7c.zip | |
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.
Diffstat (limited to 'src/jemalloc.c')
| -rw-r--r-- | src/jemalloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index cd97ea16..1a26a44f 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -1272,6 +1272,7 @@ malloc_init_hard_a0_locked(tsd_t *tsd) abort(); } } + pages_boot(); if (base_boot()) return (true); if (chunk_boot()) |
