From 489577676f14d5ee62459f9134095d982a08e430 Mon Sep 17 00:00:00 2001 From: Julien Barbot Date: Fri, 29 Jan 2010 11:31:15 +0100 Subject: 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). --- erts/emulator/beam/external.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'erts/emulator/beam/external.c') 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 { -- cgit v1.2.3