[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Garbage collection durint pcall.
- From: Andrew Gierth <andrew@...>
- Date: Mon, 03 Jun 2019 16:35:59 +0100
>>>>> "Roberto" == Roberto Ierusalimschy <roberto@inf.puc-rio.br> writes:
>> An object reference may be abandoned as soon as the program gets to
>> the point where it will no longer need the object for its normal
>> execution (i.e. ignoring the effects of weak references and
>> finalizers). The finalizer can run any time after that (1ns or 1
>> year later).
Roberto> +1.
So if one needs to prevent an object's removal from a weak table during
the execution of a block of code, how should it be done, if simply
assigning the value to a local isn't enough?
--
Andrew.