aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-09-03 17:57:30 +0200
committerSverker Eriksson <[email protected]>2015-09-11 15:41:59 +0200
commit997881b9046d3468685c545dc917e8204e0a9ef6 (patch)
tree7cf54fa36e5c157d49d484cef747dc7f3d98646e /erts/emulator/sys/common
parente7df61f5efccd3ca106ebffb598455d0c5ea3dfd (diff)
downloadotp-997881b9046d3468685c545dc917e8204e0a9ef6.tar.gz
otp-997881b9046d3468685c545dc917e8204e0a9ef6.tar.bz2
otp-997881b9046d3468685c545dc917e8204e0a9ef6.zip
erts: Remove unused erts_have_erts_mmap
Diffstat (limited to 'erts/emulator/sys/common')
-rw-r--r--erts/emulator/sys/common/erl_mmap.c6
-rw-r--r--erts/emulator/sys/common/erl_mmap.h3
2 files changed, 0 insertions, 9 deletions
diff --git a/erts/emulator/sys/common/erl_mmap.c b/erts/emulator/sys/common/erl_mmap.c
index e6d0e1e281..eeaf96dd93 100644
--- a/erts/emulator/sys/common/erl_mmap.c
+++ b/erts/emulator/sys/common/erl_mmap.c
@@ -67,7 +67,6 @@
(((UWord) (PTR)) - ((UWord) mmap_state.sua.bot) \
< ((UWord) mmap_state.sua.top) - ((UWord) mmap_state.sua.bot)))
-int erts_have_erts_mmap;
UWord erts_page_inv_mask;
#if defined(DEBUG) || defined(ERTS_MMAP_DEBUG)
@@ -2131,8 +2130,6 @@ erts_mmap_init(ErtsMMapInit *init)
ERTS_MMAP_OP_RINGBUF_INIT();
- erts_have_erts_mmap = 0;
-
mmap_state.supercarrier = 0;
mmap_state.reserve_physical = reserve_noop;
mmap_state.unreserve_physical = unreserve_noop;
@@ -2206,8 +2203,6 @@ erts_mmap_init(ErtsMMapInit *init)
}
#endif
}
- if (!mmap_state.no_os_mmap)
- erts_have_erts_mmap |= ERTS_HAVE_ERTS_OS_MMAP;
#endif
mmap_state.no.free_seg_descs = 0;
@@ -2291,7 +2286,6 @@ erts_mmap_init(ErtsMMapInit *init)
init_free_seg_map(&mmap_state.sua.map, SZ_REVERSE_ADDR_ORDER);
mmap_state.supercarrier = 1;
- erts_have_erts_mmap |= ERTS_HAVE_ERTS_SUPERCARRIER_MMAP;
mmap_state.desc.new_area_hint = end;
diff --git a/erts/emulator/sys/common/erl_mmap.h b/erts/emulator/sys/common/erl_mmap.h
index 66619c5161..51f830d045 100644
--- a/erts/emulator/sys/common/erl_mmap.h
+++ b/erts/emulator/sys/common/erl_mmap.h
@@ -30,9 +30,6 @@
#define ERTS_MMAPFLG_SUPERCARRIER_ONLY (((Uint32) 1) << 1)
#define ERTS_MMAPFLG_SUPERALIGNED (((Uint32) 1) << 2)
-#define ERTS_HAVE_ERTS_OS_MMAP (1 << 0)
-#define ERTS_HAVE_ERTS_SUPERCARRIER_MMAP (1 << 1)
-extern int erts_have_erts_mmap;
extern UWord erts_page_inv_mask;
typedef struct {