diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-06 02:19:57 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-06 02:19:57 +0000 |
commit | 652fde50823786f32d3b9102bfc59f878d44ac15 (patch) | |
tree | 9da57900af3be3667c8dcadd5448506cb7e0cfc2 /op.c | |
parent | c7c425a4f8fa33332c7b6868a1dee31ad0148d28 (diff) | |
download | perl-652fde50823786f32d3b9102bfc59f878d44ac15.tar.gz |
Retract the PMOP cleanup patch: I'm seeing strange core dumps
with oddly familiar stack traces.
p4raw-id: //depot/perl@9054
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -843,29 +843,6 @@ S_op_clear(pTHX_ OP *o) case OP_MATCH: case OP_QR: clear_pmop: - { - HV *pmstash = PmopSTASH(cPMOPo); - if (pmstash) { - PMOP *pmop = HvPMROOT(pmstash); - PMOP *lastpmop = NULL; - while (pmop) { - if (cPMOPo == pmop) { - if (lastpmop) - lastpmop->op_pmnext = pmop->op_pmnext; - else - HvPMROOT(pmstash) = pmop->op_pmnext; - break; - } - lastpmop = pmop; - pmop = pmop->op_pmnext; - } -#ifdef USE_ITHREADS - Safefree(PmopSTASHPV(cPMOPo)); -#else - /* NOTE: PMOP.op_pmstash is not refcounted */ -#endif - } - } cPMOPo->op_pmreplroot = Nullop; ReREFCNT_dec(cPMOPo->op_pmregexp); cPMOPo->op_pmregexp = (REGEXP*)NULL; @@ -2957,7 +2934,6 @@ Perl_newPMOP(pTHX_ I32 type, I32 flags) if (type != OP_TRANS && PL_curstash) { pmop->op_pmnext = HvPMROOT(PL_curstash); HvPMROOT(PL_curstash) = pmop; - PmopSTASH_set(pmop,PL_curstash); } return (OP*)pmop; |