aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common/erl_mseg.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-08-30 11:59:49 +0200
committerSverker Eriksson <[email protected]>2013-09-30 17:34:11 +0200
commitc2dbcb69929ac18e7687f1df1de6613b34e2897b (patch)
tree5db0aac31d0568c7fb1664cedc1b2c7c6b3f1a9c /erts/emulator/sys/common/erl_mseg.c
parentca1dc60a852c7827c2934ffeacefdd0119e2d776 (diff)
downloadotp-c2dbcb69929ac18e7687f1df1de6613b34e2897b.tar.gz
otp-c2dbcb69929ac18e7687f1df1de6613b34e2897b.tar.bz2
otp-c2dbcb69929ac18e7687f1df1de6613b34e2897b.zip
erts: Prepare erl_mmap with tree structures for free seg storage
Diffstat (limited to 'erts/emulator/sys/common/erl_mseg.c')
-rw-r--r--erts/emulator/sys/common/erl_mseg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/emulator/sys/common/erl_mseg.c b/erts/emulator/sys/common/erl_mseg.c
index 2748edba02..64fcb6bb40 100644
--- a/erts/emulator/sys/common/erl_mseg.c
+++ b/erts/emulator/sys/common/erl_mseg.c
@@ -1668,8 +1668,12 @@ erts_mseg_init(ErtsMsegInit_t *init)
erl_exit(ERTS_ABORT_EXIT, "erts_mseg: unable to open /dev/zero\n");
#endif
-#if HAVE_MMAP && HALFWORD_HEAP
+#if HAVE_MMAP
+# if HALFWORD_HEAP
initialize_pmmap();
+# else
+ erts_mmap_init(&init->mmap);
+# endif
#endif
if (!IS_2POW(GET_PAGE_SIZE))