For DEBUGGING threaded builds.
Jarkko Hietaniemi [Mon, 18 Mar 2002 20:18:25 +0000 (20:18 +0000)]
p4raw-id: //depot/perl@15306

sv.c

diff --git a/sv.c b/sv.c
index d0759d1..ac40900 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -9988,6 +9988,12 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
 #endif
     PL_encoding                = sv_dup(proto_perl->Iencoding, param);
 
+#ifdef DEBUGGING
+    sv_setpvn(PERL_DEBUG_PAD(0), "", 0);       /* For regex debugging. */
+    sv_setpvn(PERL_DEBUG_PAD(1), "", 0);
+    sv_setpvn(PERL_DEBUG_PAD(2), "", 0);
+#endif
+
     /* Clone the regex array */
     PL_regex_padav = newAV();
     {