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

Re: leak in const_av_xsub?

Thread Previous | Thread Next
Father Chrysostomos
January 5, 2014 14:15
Re: leak in const_av_xsub?
Message ID:
Daniel Dragan wrote:
> In const_av_xsub at
> I see "    ST(0) = newSViv((IV)AvFILLp(av)+1);". No sv_2mortal near by,
> and we aren't using TARG. I'm not sure this if this is leaking. Its some
> pretty new code by Father Chrysostomos
> added in 5.19.3.

Thank you for finding that.  That is indeed a leak.

./miniperl -Ilib -le 'warn $$; use constant foo => 1..3; while(1){ scalar &foo }'

> I'm in the process of optimizing const_av_xsub ATM.

I will wait before fixing it, then.  Unless you want to
include it in your refactoring.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About