diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-19 21:30:18 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-19 21:30:18 +0000 |
commit | d8b46c1bb1e2856c8ae13cfa7f0b032537c8f918 (patch) | |
tree | fdb10b355d222b753f3ee2df6dc95f0d7ade8750 /pp_hot.c | |
parent | b3f4d6747e1f3080fd7541acf443f6376f42f81c (diff) | |
download | perl-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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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); |