Tom Miles | 25 Sep 16:41
Picon

Infinite loop in lua garbage collector

Hi Guys,

I've encountered a bit of a problem.  It seems it is possible in our
game to get the garbage collector to go into an infinite loop, and I
don't know anything about the gc so I don't really know how to approach
fixing it.  The loop occurs in the "singlestep" function in the GCSsweep
case. g->estimate never changes and *g->sweepgc it would appear is never
null so g->gcstate never gets set to GCSfinalize.  Under what
circumstances can this happen, and what can I do to prevent it?

Thanks in advance,

Tom

Alexander Gladysh | 25 Sep 17:13
Picon

Re: Infinite loop in lua garbage collector

Hi Tom,

Which version of Lua do you use? There were related bug in 5.1.3,
fixed in 5.1.4:

http://www.lua.org/bugs.html#5.1.3-10

HTH,
Alexander.


Gmane