diff options
author | Sverker Eriksson <[email protected]> | 2016-04-12 14:52:21 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-04-15 19:00:34 +0200 |
commit | 90641d82a4b07e6b0be142d07ac85107b8ebee9d (patch) | |
tree | dff7b35bbdcfa4aa67a4ef0c33352fb9eed6250f /erts/emulator/sys/common/erl_mseg.c | |
parent | 499a872d5f6ea09d23eb7b04ea5de2f6d3fabd98 (diff) | |
download | otp-90641d82a4b07e6b0be142d07ac85107b8ebee9d.tar.gz otp-90641d82a4b07e6b0be142d07ac85107b8ebee9d.tar.bz2 otp-90641d82a4b07e6b0be142d07ac85107b8ebee9d.zip |
erts: Make ErtsMemMapper able to map memory with PROT_EXEC
to prepare for hipe native code allocation.
Diffstat (limited to 'erts/emulator/sys/common/erl_mseg.c')
-rw-r--r-- | erts/emulator/sys/common/erl_mseg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/sys/common/erl_mseg.c b/erts/emulator/sys/common/erl_mseg.c index 286130bece..f0fbb682b0 100644 --- a/erts/emulator/sys/common/erl_mseg.c +++ b/erts/emulator/sys/common/erl_mseg.c @@ -1402,9 +1402,9 @@ erts_mseg_init(ErtsMsegInit_t *init) erts_mtx_init(&init_atoms_mutex, "mseg_init_atoms"); - erts_mmap_init(&erts_dflt_mmapper, &init->dflt_mmap); + erts_mmap_init(&erts_dflt_mmapper, &init->dflt_mmap, 0); #if defined(ARCH_64) && defined(ERTS_HAVE_OS_PHYSICAL_MEMORY_RESERVATION) - erts_mmap_init(&erts_literal_mmapper, &init->literal_mmap); + erts_mmap_init(&erts_literal_mmapper, &init->literal_mmap, 0); #endif if (!IS_2POW(GET_PAGE_SIZE)) |