summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2015-08-19 14:20:36 -0700
committerRicardo Signes <rjbs@cpan.org>2015-09-29 10:49:20 -0400
commit195eefec8954a37afa243ff3a7cb526b7d3a5e36 (patch)
treef0351ef1f5f72c052a52f2c382ebfb42f16f025c /pp.c
parentaf7ce3e6aca06566f53139c7c2f8e770a2755a02 (diff)
downloadperl-195eefec8954a37afa243ff3a7cb526b7d3a5e36.tar.gz
In pp.c:pp_coreargs, use DEFSV directly
rundefsv2 is only necessary for lexical $_. It’s slower than a simple DEFSV, which is what it falls back to anyway.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pp.c b/pp.c
index 9dd3048b5c..d8735b8013 100644
--- a/pp.c
+++ b/pp.c
@@ -6183,10 +6183,7 @@ PP(pp_coreargs)
case OA_SCALAR:
try_defsv:
if (!numargs && defgv && whicharg == minargs + 1) {
- PUSHs(find_rundefsv2(
- find_runcv_where(FIND_RUNCV_level_eq, 1, NULL),
- cxstack[cxstack_ix].blk_oldcop->cop_seq
- ));
+ PUSHs(DEFSV);
}
else PUSHs(numargs ? svp && *svp ? *svp : &PL_sv_undef : NULL);
break;