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

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

Thread Next
From:
Yuval Kogman
Date:
August 15, 2008 07:08
Subject:
[PATCH] a test for Paul Evan's qr leak
Message ID:
1218809265-64836-1-git-send-email-nothingmuch@woobling.org

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


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