lua-users home
lua-l archive

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


On 3 December 2016 at 12:15, 云风 Cloud Wu <cloudwu@gmail.com> wrote:
> I wrote a small tool to detected memory leaks in lua VM
> (https://github.com/cloudwu/lua-snapshot) ,
> It's hardly implement a pure lua version like this to traverse the whole lua
> vm to find out all of the lua objects,
> or do some hot update to replace some functions to new version.
>

Hi,

Not sure the goal of this memory leak detector but Lua comes with an
optional component 'ltests.c' that has built-in leak detection. I
enable this in Ravi in debug builds - it has been helpful when I
introduced bugs that were leaking memory.

Regards
Dibyendu