[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: restarting the GC
- From: Duncan Cross <duncan.cross@...>
- Date: Wed, 29 Dec 2010 14:06:01 +0000
On Wed, Dec 29, 2010 at 12:38 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> I think removing the implicit restart is a good idea. I also think it
>> would be a good idea to be able to easily know whether the GC is
>> currently running, so that a function could temporarily stop the GC
>> before restarting it later, or if it's stopped leave it stopped.
>
> Lua 5.2 alpha already has this option:
>
> print(collectgarbage'isrunning') --> true
>
> -- Roberto
>
>
Ah! Excellent. I missed that, sorry.
-Duncan