[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: memory question
- From: Matthew Wild <mwild1@...>
- Date: Mon, 12 Sep 2016 14:05:49 +0100
On 12 September 2016 at 13:58, Marc Balmer <marc@msys.ch> wrote:
> Does collectgarbage('count') report only the memory the Lua core allocated or would it contain memory that a C function allocated using malloc()?
Lua has no insight into what C code does with malloc(). Therefore it's
only memory allocated through Lua (or a C function allocating memory
through a Lua API).
Regards,
Matthew