New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bleadperl b2a2a901 breaks MooseX::Role::Parameterized 0.19 #10697
Comments
From @andkThe commit b2a2a90 stop map,grep leaking temps [perl #48004] breaks the tests of SARTAK/MooseX-Role-Parameterized-0.19.tar.gz with a # Failed test 'threw Regexp ((?^:'Moose::Meta::Role::__ANON__::SERIAL::\d+' requires the method 'alpha' to be implemented by 'Class::MOP::Class::__ANON__::SERIAL::\d+'))' the -V of the perl that has this result: Summary of my perl5 (revision 5 version 13 subversion 5) configuration: Characteristics of this binary (from libperl): -- |
From @iabynOn Tue, Oct 05, 2010 at 11:52:20PM -0700, Andreas J. Koenig via RT wrote:
I *think* this is due to a bug (or rather, unreasonable expectations) sub foo { i.e. it creates a temporary object each time through the map block, then The only question really is whether this is an acceptable change in blead. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @tseeDave Mitchell wrote:
+1. I have to admit I had to read your argument slowly. But after things Best regards, * bug == "bug in perl if you assume that things get cleaned up 'soon' as |
From @ikegamiOn Tue, Oct 26, 2010 at 11:54 AM, Dave Mitchell <davem@iabyn.com> wrote:
One shouldn't be surprised when Perl destroys an object as soon as it can. map traditionally returned a list even in void context, so one could expect The catch is that there is always a possibility that some relied on that I don't think this is our problem. - Eric Brine |
From @druud62On 2010-10-27 01:14, Eric Brine wrote:
There could be map-called-by-map issues popping up, like before when Yes, "not our problem" feels appropriate here. -- |
@iabyn - Status changed from 'open' to 'rejected' |
From @rurban2010/10/26 Dave Mitchell <davem@iabyn.com>:
We never guaranteed when destruction happens. -- |
From @iabynOn Mon, Nov 01, 2010 at 02:46:54PM +0100, Reini Urban wrote:
I don't understand what you mean by slower.
Should the following create and keep 10_000 temporary objects and delete @result = map { Class->new->foo($_} } 1..10_000 Most people would regard the former as leaking behaviour, hence the -- |
From @timbunceOn Mon, Nov 01, 2010 at 02:04:01PM +0000, Dave Mitchell wrote:
Not just leaking, but slower, due to all the allocation overheads Tim. |
From @rurban2010/11/2 Tim Bunce <Tim.Bunce@pobox.com>:
I see, we are recycling it. I was just thinking loud. |
From sartak@gmail.com2010/10/26 Dave Mitchell <davem@iabyn.com>:
As author of the module and tests that broke, I agree that this is an my @keepalive; Works for me! Thanks, |
Migrated from rt.perl.org#78244 (status was 'rejected')
Searchable as RT78244$
The text was updated successfully, but these errors were encountered: