This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_grepwhile: no need to extend the stack
authorDavid Mitchell <davem@iabyn.com>
Sat, 15 Jul 2017 21:26:04 +0000 (22:26 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 27 Jul 2017 10:30:24 +0000 (11:30 +0100)
commite3ad3bbc29184edf8de9c3acf6b85e79e632b069
tree0d00681ccdf119e106bd7082ad91dd1b6ebc403e
parent3773545d7938a87216a5f326c367a8c445193939
pp_grepwhile: no need to extend the stack

when returning from grep in scalar context, no need to extend the stack by
one when pushing the result count, since the last grep iteration will have
pushed its result which we've just popped.
pp_hot.c