lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 12 September 2016 at 13:58, Marc Balmer <> 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).