From: Stas Bekman Date: Mon, 1 Sep 2003 23:31:11 +0000 (-0700) Subject: Retract #20930 because of X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=35f1c1c77f660b910b6112c847a62b8d3cd3b402;p=p5sagit%2Fp5-mst-13.2.git Retract #20930 because of Subject: maint@20974 or before broke mp2 ithreads test Message-ID: <3F54392F.7080009@stason.org> p4raw-id: //depot/perl@21000 --- diff --git a/op.c b/op.c index 991a426..b10eb81 100644 --- a/op.c +++ b/op.c @@ -3787,8 +3787,6 @@ Perl_newLOOPEX(pTHX_ I32 type, OP *label) return o; } -static void const_sv_xsub(pTHX_ CV* cv); - /* =for apidoc cv_undef @@ -3804,9 +3802,8 @@ void Perl_cv_undef(pTHX_ CV *cv) { #ifdef USE_ITHREADS - if (CvFILE(cv) && (!CvXSUB(cv) || CvXSUB(cv) == const_sv_xsub)) { - /* for XSUBs CvFILE point directly to static memory; __FILE__ - * except when XSUB was constructed via newCONSTSUB() */ + if (CvFILE(cv) && !CvXSUB(cv)) { + /* for XSUBs CvFILE point directly to static memory; __FILE__ */ Safefree(CvFILE(cv)); } CvFILE(cv) = 0; @@ -3868,6 +3865,8 @@ Perl_cv_ckproto(pTHX_ CV *cv, GV *gv, char *p) } } +static void const_sv_xsub(pTHX_ CV* cv); + /* =head1 Optree Manipulation Functions @@ -4351,9 +4350,6 @@ Perl_newCONSTSUB(pTHX_ HV *stash, char *name, SV *sv) CvCONST_on(cv); sv_setpv((SV*)cv, ""); /* prototype is "" */ - if (stash) - CopSTASH_free(PL_curcop); - LEAVE; return cv;