From c2f970c32b527660a33fa513a76d913c812dcf7c Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Thu, 5 May 2016 17:45:02 -0700 Subject: 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. --- src/jemalloc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/jemalloc.c') 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()) -- cgit v1.2.3