aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common/erl_mseg.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-04-21 11:00:28 +0200
committerSverker Eriksson <[email protected]>2011-05-09 17:12:31 +0200
commit87b389731e5d9862e0bfac2708ffb5170f9b98d8 (patch)
treeba6d3a45ced61b1803ba8570ac3e91e64d4f866b /erts/emulator/sys/common/erl_mseg.h
parente3af9123e7ef9291535cafbd0ecb9d3309d674f7 (diff)
downloadotp-87b389731e5d9862e0bfac2708ffb5170f9b98d8.tar.gz
otp-87b389731e5d9862e0bfac2708ffb5170f9b98d8.tar.bz2
otp-87b389731e5d9862e0bfac2708ffb5170f9b98d8.zip
Expand the use of high memory allocation in halfword emulator
Also add 'low' field in system_info(allocator) SHORT_LIVED is still in low memory
Diffstat (limited to 'erts/emulator/sys/common/erl_mseg.h')
-rw-r--r--erts/emulator/sys/common/erl_mseg.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/erts/emulator/sys/common/erl_mseg.h b/erts/emulator/sys/common/erl_mseg.h
index d8053eb0d9..fbb66ee33b 100644
--- a/erts/emulator/sys/common/erl_mseg.h
+++ b/erts/emulator/sys/common/erl_mseg.h
@@ -60,15 +60,12 @@ typedef struct {
int preserv;
UWord abs_shrink_th;
UWord rel_shrink_th;
+#if HALFWORD_HEAP
+ int low_mem;
+#endif
} ErtsMsegOpt_t;
-#define ERTS_MSEG_DEFAULT_OPT_INITIALIZER \
-{ \
- 1, /* Use cache */ \
- 1, /* Preserv data */ \
- 0, /* Absolute shrink threshold */ \
- 0 /* Relative shrink threshold */ \
-}
+extern const ErtsMsegOpt_t erts_mseg_default_opt;
void *erts_mseg_alloc(ErtsAlcType_t, Uint *);
void *erts_mseg_alloc_opt(ErtsAlcType_t, Uint *, const ErtsMsegOpt_t *);