Branch: refs/heads/hv/av-zero
  Home:   https://github.com/Perl/perl5
  Commit: 56705edc1d3c8061fd2ac478582efde9a98a3852
      
https://github.com/Perl/perl5/commit/56705edc1d3c8061fd2ac478582efde9a98a3852
  Author: Hugo van der Sanden <h...@crypt.org>
  Date:   2021-04-05 (Mon, 05 Apr 2021)

  Changed paths:
    M av.c

  Log Message:
  -----------
  Don't zero non-real arrays

A minor difference in behaviour introduced by the rewrite of av_extend_guts
in 440c1856 and 399fef93 is that when the SV* array is first acquired, we
now zero its contents regardless of whether that is needed - and add an
extra label and 'goto' to do so.

This commit restores the original behavious: for non-refcounted arrays such
as @_ and pad arrays this is not needed, and for pads in particular we may
hit this path many times during the course of a program.


Reply via email to