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

[perl #126482] Assert fail w/o other symptoms - op.c:7750Perl_cv_const_sv_or_av

Thread Previous
From:
Tony Cook via RT
Date:
August 16, 2016 01:44
Subject:
[perl #126482] Assert fail w/o other symptoms - op.c:7750Perl_cv_const_sv_or_av
Message ID:
rt-4.0.24-15647-1471311834-145.126482-15-0@perl.org
On Wed Oct 28 19:59:10 2015, dcollinsn@gmail.com wrote:
> sub(){sub ub(){0}ub ub

This can be simplified to:

sub ub(){0} ub ub

This was introduced by 

Author: Father Chrysostomos <sprout@cpan.org>
Date:   Sun Aug 31 20:13:21 2014 -0700

    Avoid creating GVs when subs are declared
    
    This patch changes ‘sub foo {...}’ declarations to store subroutine
    references in the stash, to save memory.
    
    Typeglobs still notionally exist.  Accessing CvGV(cv) will reify them.
    Hence, currently the savings are lost when a sub call is compiled.
    
    $ ./miniperl -e 'sub foo{} BEGIN { warn $::{foo} } foo(); BEGIN { warn $::{f

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=126482

Thread Previous


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