Revert d_m3MaxConstantTableSize increase + alternative fix of #232

opam-2.0.0
Volodymyr Shymanskyy 3 years ago
parent 0f74cbb8bf
commit 2a3775cf3b

@ -292,7 +292,8 @@ M3Result AllocateSlots (IM3Compilation o, u16 * o_slot, u8 i_type)
M3Result AllocateConstantSlots (IM3Compilation o, u16 * o_slot, u8 i_type)
{
return AllocateSlotsWithinRange (o, o_slot, i_type, o->slotFirstConstIndex, o->slotFirstDynamicIndex);
u16 maxTableIndex = o->slotFirstConstIndex + d_m3MaxConstantTableSize;
return AllocateSlotsWithinRange (o, o_slot, i_type, o->slotFirstConstIndex, M3_MIN(o->slotFirstDynamicIndex, maxTableIndex));
}

@ -33,7 +33,7 @@
# endif
# ifndef d_m3MaxConstantTableSize
# define d_m3MaxConstantTableSize 1024
# define d_m3MaxConstantTableSize 120
# endif
# ifndef d_m3MaxDuplicateFunctionImpl

Loading…
Cancel
Save