-Dx could coredump on threaded builds because consts are now
Dave Mitchell [Thu, 19 Feb 2004 13:43:18 +0000 (13:43 +0000)]
stored in the pad

p4raw-id: //depot/perl@22343

dump.c

diff --git a/dump.c b/dump.c
index 17e132b..798c331 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -659,7 +659,11 @@ Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, OP *o)
        break;
     case OP_CONST:
     case OP_METHOD_NAMED:
+#ifndef USE_ITHREADS
+       /* with ITHREADS, consts are stored in the pad, and the right pad
+        * may not be active here, so skip */
        Perl_dump_indent(aTHX_ level, file, "SV = %s\n", SvPEEK(cSVOPo_sv));
+#endif
        break;
     case OP_SETSTATE:
     case OP_NEXTSTATE: