This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
A better fix for leaking array assignment
authorFather Chrysostomos <sprout@cpan.org>
Mon, 24 Sep 2012 06:56:40 +0000 (23:56 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 24 Sep 2012 16:37:11 +0000 (09:37 -0700)
commit1802449202fea1afd3584bbd6203d82b0dd52ac1
treed285ccefc897fa44930c53014f91db9dce9588c9
parentf0bb87ff23759a68400cea2b5cca249af1f69725
A better fix for leaking array assignment

Instead of filling up the mortals stack with as many SVs as there are
elements, just call get-magic before creating the new SV.

(This is not so easy for hashes, as we have keys as well, and
hv_common always calls get-magic on keys.)

See commits 9c744f4f4d7 and 39984de3a8, which fixed leaking bugs, but
inefficiently.
pp_hot.c