lua-users home
lua-l archive

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


On Fri, 2005-01-07 at 14:30, Mike Pall wrote:

> 
> No, this is not the problem. You missed the define in lgc.h:
> 
> #define luaC_checkGC(L) { if (G(L)->totalbytes >= G(L)->GCthreshold) \
>   luaC_step(L); }


Ok, how about this:

  do {
    lim -= singlestep(L);
    if (g->gcstate == GCSpause)
      break;
  } while (lim > 0 || !g->incgc);


This is a repeat/until loop: it always executes once.
So a step is *always* done at least once, 
no matter what g->incmode is. 
It should be a while loop?

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net