lua-users home
lua-l archive

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


> Can a garbage collection cycle occur inside lua_pop() or
> lua_setstack() calls?

No.


> If it cannot, is it guaranteed somewhere in the docs or is it
> implementation dependent?

It is implementation dependent. (Note that even the notion of "garbage
collection cycle" is implementation dependent. Lua uses an incremental
collector, which means that a cycle occurs distributed among several
points in time.)

Why do you need to know that?

-- Roberto