diff options
author | Sverker Eriksson <[email protected]> | 2012-11-19 14:39:57 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-11-19 14:39:57 +0100 |
commit | ea0b2bd94d0c1413bce84880196077c44b65f6f8 (patch) | |
tree | 2b730e24bd878e1a65689ba68305f278b42cd879 /erts/emulator/beam | |
parent | 048841ed243974562ead2f8d65435e2ffaf974c6 (diff) | |
download | otp-ea0b2bd94d0c1413bce84880196077c44b65f6f8.tar.gz otp-ea0b2bd94d0c1413bce84880196077c44b65f6f8.tar.bz2 otp-ea0b2bd94d0c1413bce84880196077c44b65f6f8.zip |
erts: Cleanup minor things in alloc_util
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_alloc_util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_alloc_util.c b/erts/emulator/beam/erl_alloc_util.c index 1bdd5d79b5..64490a1c02 100644 --- a/erts/emulator/beam/erl_alloc_util.c +++ b/erts/emulator/beam/erl_alloc_util.c @@ -2099,8 +2099,6 @@ create_carrier(Allctr_t *allctr, Uint umem_sz, UWord flags) crr_sz = allctr->mbc_header_size + blk_sz; mseg_flags = ERTS_MSEG_FLG_2POW; } - crr_sz = MSEG_UNIT_CEILING(crr_sz); - ASSERT(crr_sz % MSEG_UNIT_SZ == 0); crr = (Carrier_t *) alcu_mseg_alloc(allctr, &crr_sz, mseg_flags); if (!crr) { @@ -4200,7 +4198,7 @@ erts_alcu_start(Allctr_t *allctr, AllctrInit_t *init) + sizeof(FreeBlkFtr_t)); #if ERTS_SMP if (init->tpref) { - Uint sz = sizeof(Block_t); + Uint sz = ABLK_HDR_SZ; sz += ERTS_ALCU_DD_FIX_TYPE_OFFS*sizeof(UWord); if (init->fix) sz += sizeof(UWord); |