This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp.c: Eliminate unnecessary dORIGMARK from pp_anonlist
authorFather Chrysostomos <sprout@cpan.org>
Fri, 14 Jun 2013 07:40:23 +0000 (00:40 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 15 Jun 2013 01:13:16 +0000 (18:13 -0700)
commit31476221e8e03a317c349f057be115891edca18c
tree2fec03b5b772197ad6eae34d80d944a8f3a7f7ca
parent169504d53dbeb12d5171b2b44e7db3c2b81af314
pp.c: Eliminate unnecessary dORIGMARK from pp_anonlist

This extra protection was added in commit 44a8e56aa0 or d976ac8220
(I’m a little confused as to the history here).

At the time, av_make really could reallocate the stack.  That changed
in commit efaf36747029.

Now there is no need for dORIGMARK and ORIGMARK.  (ORIGMARK is more
expensive than MARK since it looks up PL_stack_base and recalculates
where we are on the stack, based on a recorded offset.  MARK simply
stores a pointer to where we want to be.)
pp.c