[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: question: lua deterministic gc
- From: Thijs Schreijer <thijs@...>
- Date: Mon, 28 Dec 2020 16:23:53 +0000
> On 26 Dec 2020, at 23:19, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
>
> On Wed, 23 Dec 2020 at 14:23, Roberto Ierusalimschy
> <roberto@inf.puc-rio.br> wrote:
>
>> Calling 'collectgarbage' twice frees all memory not in use by Lua.
>
> Why twice? Also is this true of both incremental / generational modes,
> as well as of Lua 5.3?
>
> Regards
First one finalises (calling GC metamethods), 2nd call actually cleans them out
Not entirely sure, but most likely applies to all versions.