diff options
author | Julien Barbot <[email protected]> | 2010-01-29 11:31:15 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-02-02 15:47:18 +0100 |
commit | 489577676f14d5ee62459f9134095d982a08e430 (patch) | |
tree | 6a9b01cfecf792b0e9577ca95cde7f87a30cc947 /erts/emulator/beam/external.c | |
parent | 085012b1ac9251d1cbd821f8b28034072fba63c3 (diff) | |
download | otp-489577676f14d5ee62459f9134095d982a08e430.tar.gz otp-489577676f14d5ee62459f9134095d982a08e430.tar.bz2 otp-489577676f14d5ee62459f9134095d982a08e430.zip |
Add the +t emulator option to change the maximum number of atoms
It is now possible to increase or decrease the maximum number of atoms
the VM can handle. The default value is 1048576 (1024*1024).
Diffstat (limited to 'erts/emulator/beam/external.c')
-rw-r--r-- | erts/emulator/beam/external.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c index 24887b3dea..b011d4c0de 100644 --- a/erts/emulator/beam/external.c +++ b/erts/emulator/beam/external.c @@ -271,11 +271,8 @@ erts_encode_ext_dist_header_size(ErtsAtomCacheMap *acmp) byte *erts_encode_ext_dist_header_setup(byte *ctl_ext, ErtsAtomCacheMap *acmp) { -#ifndef ARCH_32 -#if ATOM_LIMIT >= (1UL << 32) -#error "ATOM_LIMIT too large for interal atom cache update instructions. New instructions needed." -#endif -#endif + /* Maximum number of atom must be less than the maximum of a 32 bits + unsigned integer. Check is done in erl_init.c, erl_start function. */ if (!acmp) return ctl_ext; else { |