lua-users home
lua-l archive

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


> 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