Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: (MeowChow) Re: Looking for Leaks

by bikeNomad (Priest)
on Aug 09, 2001 at 23:44 UTC ( #103594=note: print w/replies, xml ) Need Help??


in reply to Re: (MeowChow) Re: Looking for Leaks
in thread Looking for Leaks

If things weren't accessible, how would you find them? At least in pure Perl, this would be impossible. You could iterate over all the symbol tables, following references to reachable objects, but this wouldn't find things that had leaked.
  • Comment on Re: Re: (MeowChow) Re: Looking for Leaks

Replies are listed 'Best First'.
Re: Re: Re: (MeowChow) Re: Looking for Leaks
by dragonchild (Archbishop) on Aug 09, 2001 at 23:49 UTC
    In pure Perl, yes. In XS, it should be possible to iterate through the entire region of memory and see if anything has a valid reference. Also (and I'm stretching my memory here), isn't there a way in C to find out all the malloc'ed areas? You could compare that with the list of all reachable objects and see if there's a discrepancy...

    ------
    /me wants to be the brightest bulb in the chandelier!

    Vote paco for President!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://103594]
help
Chatterbox?
[erix]: that's a good one. I must remember that :P
[stevieb]: I really dislike how perlbrew doesn't list your version of perl if a newer minor version bump has happened. eg: I use 5.24.1, but 5.24.2 is available, hiding my 5.24.1. I may look at this, as I made it display correctly in berrybrew in cases like this
[stevieb]: choroba just gleaned your post about Module::Starter. I use it too, pretty much for every dist I write

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-08-18 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (310 votes). Check out past polls.

    Notices?