[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <firstname.lastname@example.org> 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).