Re: Odd GC recursion
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Odd GC recursion
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2004年10月05日 13:30:58 -0300
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