aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc_util.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-11-08 21:30:32 +0100
committerSverker Eriksson <[email protected]>2012-11-15 14:20:37 +0100
commit0b18830887c6925a45a74eef97ee6e4c81e4f94d (patch)
tree188f2df0d99456fff5c7c79e7a6324706416cf97 /erts/emulator/beam/erl_alloc_util.h
parent195f9fa243d286420c87bef8aefc6c810feb1877 (diff)
downloadotp-0b18830887c6925a45a74eef97ee6e4c81e4f94d.tar.gz
otp-0b18830887c6925a45a74eef97ee6e4c81e4f94d.tar.bz2
otp-0b18830887c6925a45a74eef97ee6e4c81e4f94d.zip
erts: Change single carrier block header flags
to allow realloc to determine block size (in MBC or SBC) without having to read the footer of the previous block that might be written to by concurrent thread.
Diffstat (limited to 'erts/emulator/beam/erl_alloc_util.h')
-rw-r--r--erts/emulator/beam/erl_alloc_util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_alloc_util.h b/erts/emulator/beam/erl_alloc_util.h
index f440752c4a..1e6ba5736a 100644
--- a/erts/emulator/beam/erl_alloc_util.h
+++ b/erts/emulator/beam/erl_alloc_util.h
@@ -233,8 +233,6 @@ erts_aint32_t erts_alcu_fix_alloc_shrink(Allctr_t *, erts_aint32_t);
#define MBC_BLK_SZ(B) (ASSERT_EXPR(!is_sbc_blk(B)), (B)->bhdr & MBC_BLK_SZ_MASK)
#define SBC_BLK_SZ(B) (ASSERT_EXPR(is_sbc_blk(B)), (B)->bhdr & SBC_BLK_SZ_MASK)
-#define BLK_SZ(B) ((B)->bhdr & (IS_SBC_BLK(B) ? SBC_BLK_SZ_MASK : MBC_BLK_SZ_MASK))
-
#define CARRIER_SZ(C) \
((C)->chdr & CARRIER_SZ_MASK)