summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-09-19 21:30:18 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-09-19 21:30:18 +0000
commitd8b46c1bb1e2856c8ae13cfa7f0b032537c8f918 (patch)
treefdb10b355d222b753f3ee2df6dc95f0d7ade8750 /pp_hot.c
parentb3f4d6747e1f3080fd7541acf443f6376f42f81c (diff)
downloadperl-d8b46c1bb1e2856c8ae13cfa7f0b032537c8f918.tar.gz
avoid clearing @_ at all for faster subroutine calls; fix bugs
in passing around references to @_, eg C<sub foo { \@_ }>; add tests for the same p4raw-id: //depot/perl@4195
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pp_hot.c b/pp_hot.c
index e75ec30258..df5e0624d9 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2522,11 +2522,7 @@ try_autoload:
"%p entersub preparing @_\n", thr));
#endif
av = (AV*)PL_curpad[0];
- if (AvREAL(av)) {
- av_clear(av);
- AvREAL_off(av);
- AvREIFY_on(av);
- }
+ assert(!AvREAL(av));
#ifndef USE_THREADS
cx->blk_sub.savearray = GvAV(PL_defgv);
GvAV(PL_defgv) = (AV*)SvREFCNT_inc(av);