Re: Back to the GC stall in atomic()
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Back to the GC stall in atomic()
- From: roberto@... (Roberto Ierusalimschy)
- Date: 2007年12月11日 16:07:44 -0200
> Yes, it is luaC_separateudate that stalls. But is that separation phase
> really needed if my finalizers "promise" never to create new lua
> objects, touch other lua objects, etc.
Even if you promise not to touch other Lua objects, Lua itself needs
the metatable of the userdata in order to call its finalizer. If the
metatable is collected (because the last reference to it came from
the userdata and it was not marked in the atomic phase), you are in
trouble...
-- Roberto