lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Just a quick poll... What do people have the STACK_LIMIT in ldo.c set 
for?
> Default is 6000 with the comment /* arbitrary limit */ ... ???
I suppose that you use Lua 3.2 because 4.0 haven't this STACK_LIMIT.
I could say something wrong, but I guess that luaD_init() initialize 
the stack by default for STACK_UNIT (128) object.
When luaD_checkstack() needs to increase the stack, it checks for a 
huge (and possible wrong) stack size.

Mauro