lua-users home
lua-l archive

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


> 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.