lua-users home
lua-l archive

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


> Now my questions:
> 
> * Are there any other implicit memory allocations when running Lua code?

Not that I remember.


> * Is there some way to protect the allocated `CallInfo` elements
> once the recursive calls have returned, or do I have to disable the
> GC temporarily?

You have to stop the GC (but see next item).


> * When is the GC triggered anyway? Only when new memory is allocated
> (and by calls to `lua_gc()`)?

Yes.


> * Are there any other types of errors that non-faulty Lua code could throw?

Not that I remember. (It is not by chance that Lua has a different code
for memory errors.)

-- Roberto