[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Odd GC recursion
- From: "Tom Spilman" <tom@...>
- Date: Tue, 5 Oct 2004 11:49:35 -0500
> This is a bug in Lua. It cannot call GCTM before updating GCthreshold.
> A quick fix is to increment GCthreshold before calling GCTM.
> Something like this (in lgc.c):
>
> case GCSfinalize: {
> if (g->tmudata) {
> + g->GCthreshold = g->totalbytes + GCFINALIZECOST; /*
> untested!
> + */
> GCTM(L);
> return GCFINALIZECOST;
> }
>
> -- Roberto
Thanks Roberto. I tested this little fix and it works perfectly.
Tom Spilman
Co-owner | Programmer
www.sickheadgames.com