summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorStas Bekman <stas@stason.org>2003-09-01 16:31:11 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2003-09-02 15:35:40 +0000
commit35f1c1c77f660b910b6112c847a62b8d3cd3b402 (patch)
tree0fe288a93fa2f2735adb0899ce8fb9be5062ffe3 /op.c
parent64b374f47ab87515a3309424011c03542689c7c6 (diff)
downloadperl-35f1c1c77f660b910b6112c847a62b8d3cd3b402.tar.gz
Retract #20930 because of
Subject: maint@20974 or before broke mp2 ithreads test Message-ID: <3F54392F.7080009@stason.org> p4raw-id: //depot/perl@21000
Diffstat (limited to 'op.c')
-rw-r--r--op.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/op.c b/op.c
index 991a42661c..b10eb81d89 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;