[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <email@example.com> wrote:
> On Wed, 23 Dec 2020 at 14:23, Roberto Ierusalimschy
> <firstname.lastname@example.org> 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?
First one finalises (calling GC metamethods), 2nd call actually cleans them out
Not entirely sure, but most likely applies to all versions.