aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-07-26 17:09:22 +0200
committerSverker Eriksson <[email protected]>2011-07-26 17:09:22 +0200
commit9cd77a455b7faa05e8f9364bdbd16c57836e71c9 (patch)
tree15d3682abe4c128ccdaf8b13d70a11cc751b481f /erts/emulator/beam/erl_alloc.h
parent25bbf48a7cf7576ba18e95dd268c66b63ec698e0 (diff)
parent11c1e9cb50a86f193bbd9be033b75298de85875f (diff)
downloadotp-9cd77a455b7faa05e8f9364bdbd16c57836e71c9.tar.gz
otp-9cd77a455b7faa05e8f9364bdbd16c57836e71c9.tar.bz2
otp-9cd77a455b7faa05e8f9364bdbd16c57836e71c9.zip
Merge branch 'sverker/sbmbc-fixup' into dev
* sverker/sbmbc-fixup: Small fixups for rickard/sbmbc/OTP-9339
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;