diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-04-06 21:53:46 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-04-06 21:53:46 +0000 |
commit | ad639bfb68f3fce4864d833950ed2ff9dd1cb28d (patch) | |
tree | 0f94b8b59215fe8d987ae34bd2793fcc3961cadd /op.c | |
parent | bfd0ff222f043bea86c0b0e7700eeab47f675d46 (diff) | |
download | perl-ad639bfb68f3fce4864d833950ed2ff9dd1cb28d.tar.gz |
Only append ?? match ops to the list used by reset. This saves memory
and time.
p4raw-id: //depot/perl@30857
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -3326,20 +3326,6 @@ Perl_newPMOP(pTHX_ I32 type, I32 flags) } #endif - /* append to pm list */ - if (type != OP_TRANS && PL_curstash) { - MAGIC *mg = mg_find((SV*)PL_curstash, PERL_MAGIC_symtab); - U32 elements; - if (!mg) { - mg = sv_magicext((SV*)PL_curstash, 0, PERL_MAGIC_symtab, 0, 0, 0); - } - elements = mg->mg_len / sizeof(PMOP**); - Renewc(mg->mg_ptr, elements + 1, PMOP*, char); - ((PMOP**)mg->mg_ptr) [elements++] = pmop; - mg->mg_len = elements * sizeof(PMOP**); - PmopSTASH_set(pmop,PL_curstash); - } - return CHECKOP(type, pmop); } |