aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-07-20 15:38:48 +0200
committerSverker Eriksson <[email protected]>2011-07-20 15:38:48 +0200
commit11c1e9cb50a86f193bbd9be033b75298de85875f (patch)
treed06dd81411382c82eae794559a91b30663f93d7b /erts/emulator/beam/erl_alloc.h
parenta3d8134ffcb4ec7be60bdc896fb9be0928c2b1ff (diff)
downloadotp-11c1e9cb50a86f193bbd9be033b75298de85875f.tar.gz
otp-11c1e9cb50a86f193bbd9be033b75298de85875f.tar.bz2
otp-11c1e9cb50a86f193bbd9be033b75298de85875f.zip
Small fixups for rickard/sbmbc/OTP-9339
alloc_no of sbmbc_low_alloc was set to ERTS_ALC_A_STANDARD_LOW
Diffstat (limited to 'erts/emulator/beam/erl_alloc.h')
-rw-r--r--erts/emulator/beam/erl_alloc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_alloc.h b/erts/emulator/beam/erl_alloc.h
index ce792d4d17..c35a60da22 100644
--- a/erts/emulator/beam/erl_alloc.h
+++ b/erts/emulator/beam/erl_alloc.h
@@ -99,6 +99,14 @@ unsigned long erts_alc_test(unsigned long,
#define ERTS_ALC_MIN_LONG_LIVED_TIME (10*60*1000)
+#if HALFWORD_HEAP
+#define ERTS_IS_SBMBC_ALLOCATOR_NO__(NO) \
+ ((NO) == ERTS_ALC_A_SBMBC || (NO) == ERTS_ALC_A_SBMBC_LOW)
+#else
+#define ERTS_IS_SBMBC_ALLOCATOR_NO__(NO) \
+ ((NO) == ERTS_ALC_A_SBMBC)
+#endif
+
typedef struct {
int alloc_util;
int enabled;