Re: Causing the currently running function to be garbage collected
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Causing the currently running function to be garbage collected
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2008年10月20日 13:48:28 -0200
> If a function's upvalues pointed to all the instances of that function
> on the stack, and assuming that the function does not exist in any
> tables, then if that function set all of it's upvalues to nil, and
> then a GC collection, then it would cause itself to be collected. This
> then causes all kinds of fun (i.e. segfaults) as the current
> environment table has probably just been collected as well.
Could you explain better? I am afraid I cannot understand what you have
done.
-- Roberto