develooper Front page | perl.perl5.porters | Postings from August 2008

[PATCH] a test for Paul Evan's qr leak

Thread Next
Yuval Kogman
August 15, 2008 07:08
[PATCH] a test for Paul Evan's qr leak
Message ID:

Paul Graham's Devel::Refcount module spotted a leak in blead perl.

The test passes on 5.10.

This script demonstrates that they are only destroyed in GD:

perl -e 'sub Regexp::DESTROY { warn "destroyed" }; { my $val; my $re = qr/(?{ $val })/ } warn "end"; END { warn "glboal" }'

On 5.10 it warns from the destructor, then the end of the script, and
then the END block. On blead the Regexp::DESTROY warning happens after
the END block's.

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