summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStas Bekman <stas@stason.org>2003-12-02 17:41:42 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-12-03 08:27:33 +0000
commit68853529b82cedc7fc5774cbdb57734af389f541 (patch)
treef964f5ad69b923109f82be9f756ce0ed1c2416ae
parent4b618757339319cc630e0a81a96a00ace56331a1 (diff)
downloadperl-68853529b82cedc7fc5774cbdb57734af389f541.tar.gz
Re: XS modules having problems with CLONE and ithreads unless PERL_NO_GET_CONTEXT is defined
Message-ID: <3FCDAFD6.9050106@stason.org> p4raw-id: //depot/perl@21837
-rw-r--r--sv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sv.c b/sv.c
index 469faa9a63..5e61449761 100644
--- a/sv.c
+++ b/sv.c
@@ -11000,9 +11000,10 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_debug = proto_perl->Idebug;
#ifdef USE_REENTRANT_API
-#ifdef DEBUGGING
- PERL_SET_CONTEXT(proto_perl);
-#endif
+ /* XXX: things like -Dm will segfault here in perlio, but doing
+ * PERL_SET_CONTEXT(proto_perl);
+ * breaks too many other things
+ */
Perl_reentrant_init(aTHX);
#endif