develooper Front page | perl.perl5.porters | Postings from January 2003

Re: Freeing Code

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
January 24, 2003 09:01
Subject:
Re: Freeing Code
Message ID:
20030124180203.618410b7.rgarciasuarez@free.fr
notthatbbennett@yahoo.com (Bill Bennett) wrote:
> 
> I've done some tests with eval'ing strings in a loop to create
> anon sub's and observe steady growth in memory size.  That's why
> I suspect they aren't.  I have an interactive application which 
> allows execution of perl fragments submitted by (trusted) user.
> Seems like I'm stuck with a built-in memory leak.

On the other hand, a quick test shows that the ops allocated
by a simple $x = eval qq{sub...} are correctly freed. Could
you produce a test case for your memory leak ?

Thread Previous | 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