[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: HELP - leak in lua 5.0.3
- From: "Alexandra Barros" <alexandra.barros@...>
- Date: Sun, 16 Jul 2006 16:53:12 -0300
Sory, I think I dind't explain well :(
You don't need to pass countreferences and findallpaths as a parameter of traverse. Inside these functions there's a definition of the function that should be passed to traverse and the call for traverse.
So, instead of traverse(countreferences(a)) you should use countreferences(a).
I'll see the problem with the version.
Mikołaj Dawidowski <email@example.com> wrote:
I forgot to post what I am doing:
Here is how I try to use it. Is it OK. ?
traverse( countreferences(a) )
From: Alexandra Barros [mailto:firstname.lastname@example.org]
Sent: Thursday, July 13, 2006 4:53 PM
To: Lua list
Subject: Re: HELP - leak in lua 5.0.3
Here is the tool. You can implement a function that gives you the
information you want and then call the function traverse passing your
function as a parameter. As an example, you can look at the functions
'countreferences' and 'findallpaths'. But if these functions already gives
you all the information you want... well.. that's better =)
But it hasn't been fully tested yet. Please, report me if you find any bugs.
On 7/12/06, Roberto Ierusalimschy < email@example.com
> > wrote:
> Sorry, no insights into this leak specifically, but it
> does bring up a possible suggestion for Lua 5.2 (or 6.0,
> or whatever) - the ability to programatically walk or otherwise
> instrument the not-dead object set in a similar manner to how the
> GC does.
You can do that in Lua itself, using some reflexive facilities. I
someone in the list did some tool for this. A student of mine also
wrote such tool (to traverse all live objects of a state). If she is
not in the list, you may contact her directly:
Alexandra Barros <abarros at inf dot puc-rio dot br>