summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-06-05 14:20:51 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-06-05 14:20:51 +0000
commite858de61083066071eb1526df39bdaa094032c61 (patch)
treea59a60b162edf35b5557f553d4812553b75a996d /gv.c
parent5196be3eab7cb5c37d1fce858e95874c8439e54f (diff)
downloadperl-e858de61083066071eb1526df39bdaa094032c61.tar.gz
More fixups for thrperl integration.
p4raw-id: //depot/perl@27
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index c9f919ccc2..50e90409c1 100644
--- a/gv.c
+++ b/gv.c
@@ -58,6 +58,7 @@ GV *
gv_fetchfile(name)
char *name;
{
+ dTHR;
char smallbuf[256];
char *tmpbuf;
STRLEN tmplen;
@@ -182,6 +183,7 @@ I32 level;
basestash = gv_stashpvn(packname, packlen, TRUE);
gvp = (GV**)hv_fetch(basestash, "ISA", 3, FALSE);
if (gvp && (gv = *gvp) != (GV*)&sv_undef && (av = GvAV(gv))) {
+ dTHR; /* just for SvREFCNT_dec */
gvp = (GV**)hv_fetch(stash, "ISA", 3, TRUE);
if (!gvp || !(gv = *gvp))
croak("Cannot create %s::ISA", HvNAME(stash));
@@ -231,6 +233,7 @@ I32 level;
(cv = GvCV(gv)) &&
(CvROOT(cv) || CvXSUB(cv)))
{
+ dTHR; /* just for SvREFCNT_inc */
if (cv = GvCV(topgv))
SvREFCNT_dec(cv);
GvCV(topgv) = (CV*)SvREFCNT_inc(GvCV(gv));