summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-08 12:08:17 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-08 12:08:17 +0000
commit534825c439e9bf017f3cdaf88d284d58d5eac6bd (patch)
tree1884c58f0eef7d68e5cd924efde5a05d8c8b6e0b /perl.c
parente23b9d0f648442d8e275530c0bf8b0027cee41d1 (diff)
downloadperl-534825c439e9bf017f3cdaf88d284d58d5eac6bd.tar.gz
add missing locks for op refcounts
p4raw-id: //depot/perl@5610
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 2dbfc8e193..715f4da4ae 100644
--- a/perl.c
+++ b/perl.c
@@ -64,8 +64,12 @@ static I32 read_e_script(pTHXo_ int idx, SV *buf_sv, int maxlen);
PERL_SET_INTERP(my_perl); \
INIT_THREADS; \
ALLOC_THREAD_KEY; \
+ PERL_SET_THX(my_perl); \
+ OP_REFCNT_INIT; \
+ } \
+ else { \
+ PERL_SET_THX(my_perl); \
} \
- PERL_SET_THX(my_perl); \
} STMT_END
# else
# define INIT_TLS_AND_INTERP \