[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: PATCH: fixes bug with calling garbage collector from custom lua_Alloc
- From: "Bogdan Marinescu" <bogdan.marinescu@...>
- Date: Fri, 9 May 2008 13:16:54 +0300
> That looks like the same step collection code as in the lua_memlimit program.
That's because I'm using your code :) I just adapted it slightly to
match my data structures.
>
> lua_gc() returns false unless the step collection request finished a
> collection cycle. If "lua_gc(info->L, LUA_GCSTEP, step_size)" is called
> until it returns true, it should complete a full collection.
>
> I will take a closer look at it tomorrow. There are a few loops inside lua_gc
> and luaC_step that might be causing this problem.
I'll also take a look tonight and come back with new information if I
find the problem.