aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc_util.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-11-05 15:37:49 +0100
committerRickard Green <[email protected]>2013-11-05 23:07:26 +0100
commitbb59a8fcf1f6cf4162a2a97c13087843d1b9dac4 (patch)
treefed80a9fd3ab92468354823bbc12bcf94d133a87 /erts/emulator/beam/erl_alloc_util.h
parentf17532112c6b723a7b025c7d74565e7ac2588cbb (diff)
downloadotp-bb59a8fcf1f6cf4162a2a97c13087843d1b9dac4.tar.gz
otp-bb59a8fcf1f6cf4162a2a97c13087843d1b9dac4.tar.bz2
otp-bb59a8fcf1f6cf4162a2a97c13087843d1b9dac4.zip
Add switch for disabling sys_alloc carriers
The switch "+Musac <boolean>" controls if sys_alloc carriers are allowed.
Diffstat (limited to 'erts/emulator/beam/erl_alloc_util.h')
-rw-r--r--erts/emulator/beam/erl_alloc_util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_alloc_util.h b/erts/emulator/beam/erl_alloc_util.h
index 222f137024..7be6b1ed9d 100644
--- a/erts/emulator/beam/erl_alloc_util.h
+++ b/erts/emulator/beam/erl_alloc_util.h
@@ -32,6 +32,7 @@ typedef struct Allctr_t_ Allctr_t;
typedef struct {
UWord ycs;
UWord mmc;
+ int sac;
} AlcUInit_t;
typedef struct {
@@ -75,7 +76,8 @@ typedef struct {
#define ERTS_DEFAULT_ALCU_INIT { \
1024*1024, /* (bytes) ycs: sys_alloc carrier size */\
- ~((UWord) 0) /* (amount) mmc: max mseg carriers */ \
+ ~((UWord) 0), /* (amount) mmc: max mseg carriers */\
+ 1 /* (bool) sac: sys_alloc carriers */\
}
#define ERTS_DEFAULT_ALLCTR_INIT { \
@@ -109,7 +111,8 @@ typedef struct {
#define ERTS_DEFAULT_ALCU_INIT { \
128*1024, /* (bytes) ycs: sys_alloc carrier size */\
- 1024 /* (amount) mmc: max mseg carriers */\
+ 1024, /* (amount) mmc: max mseg carriers */\
+ 1 /* (bool) sac: sys_alloc carriers */\
}
#define ERTS_DEFAULT_ALLCTR_INIT { \