summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-02-19 13:43:18 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-02-19 13:43:18 +0000
commitb6a15bc5202dd52395ce566b43e1490d38dc2141 (patch)
tree53b6e01e403c1d1f0daeac662bb3befcd510857c /dump.c
parentdad3338cf857b476a573eeba2631a94728f16e97 (diff)
downloadperl-b6a15bc5202dd52395ce566b43e1490d38dc2141.tar.gz
-Dx could coredump on threaded builds because consts are now
stored in the pad p4raw-id: //depot/perl@22343
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dump.c b/dump.c
index 17e132b0a9..798c331f4e 100644
--- 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: