[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_pop and garbage collection
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 27 May 2014 12:31:24 -0300
> 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