[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_pushstring, luaC_checkGC and top changing (grows by 2)
- From: Felipe Magno de Almeida <felipe.m.almeida@...>
- Date: Tue, 26 Jan 2010 14:49:46 -0200
On Mon, Jan 25, 2010 at 6:41 PM, Felipe Magno de Almeida
> I'm seeing that when GCTM is called after a luaC_checkGC where the
> threshold is hit, the lua_gettop(L) grows by 2.
> This happens within GCTM where lua_gettop(L) == 0 and L->top is added by 2.
> Then the luaD_call doesn't consume the two from L->top.
> This only happens when the first GCTM is called.
> All this happens while Lua is in a infinite loop.
> A hook count is set every 2 instructions, and yields.
Am I in the right mailing list to discuss Lua implementation?
Thanks in advance,
Felipe Magno de Almeida