lua-users home
lua-l archive

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


I ran into that as well (along with some other issues that I reported here
but haven't tracked down yet but which I now suspect are tied to
multi-threading). My fix was to test L->allowhook in luaC_checkGC.

Mark

on 7/27/04 7:44 PM, Jasmin Patry at jpatry@radical.ca wrote:

> 
> We've encountered a situation in which we get extremely deep recursion
> in the Lua 5.1 GC.  The problem occurs when collection userdata objects
> with __gc metamethods definied:
> 
> * singlestep calls GCTM
> * GCTM calls luaD_call
> * luaD_call calls luaC_checkGC
> * luaC_checkGC calls singlestep
> ...ad infinitum (almost)