develooper Front page | perl.perl5.porters | Postings from March 2001

leaks by script

Thread Next
From:
Nicholas Clark
Date:
March 4, 2001 09:12
Subject:
leaks by script
Message ID:
20010304171215.C24840@plum.flirble.org
Following the perl6 lists debate on GC, I read

http://www.hpl.hp.com/personal/Hans_Boehm/gc/

You can use it as a leak tester (of sorts - anything it tries to GC is leak)

Hacked iperlsys.h and other bits to get it to link - all a bit depressing.
For example:

lib/socket............Leaked composite object at start: 0x815e000, appr. length: 16
Leaked composite object at start: 0x815e010, appr. length: 16
Leaked composite object at start: 0x815e030, appr. length: 16
ok

(this is bleadperl, do I need to  #define anything other than PURIFY to
disable areas?)

However, I was going to attempt to patch the Boehm GC to also store script
name and line (as well as C file name and line) in its debugging info,
which should be a little bit more interesting... :-)

Nicholas Clark

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About