[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problem with garbage collector while parsing
- From: Ingo van Lil <inguin@...>
- Date: Thu, 13 Oct 2011 19:19:36 +0200
On 13/10/2011 18:22, Roberto Ierusalimschy wrote:
Up to this point, the prototype is anchored in the stack. But after the
"L->top -= 2", the prototype is unanchored; anchor_token may call the
collector, which then may collect the proto.
I believe the fix is simply to change the order of these two lines. But
I will have a closer look. (There is some distance between this point
where the prototype is unanchored to where it is anchored again, in
Swapping the two lines fixes the problem for me. Thank you very much!