Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 69b140c

Browse files
committed
dump: temp. turn off -Dm
no memory debugging while dumping a sv or op
1 parent 4414e9b commit 69b140c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

dump.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,18 @@ Dumps the optree starting at OP C<o> to C<STDERR>.
11751175
void
11761176
Perl_op_dump(pTHX_ const OP *o)
11771177
{
1178+
#ifdef DEBUGGING
1179+
int was_m = 0;
1180+
if (DEBUG_m_TEST) {PL_debug &= ~DEBUG_m_FLAG; was_m++;}
1181+
#endif
1182+
11781183
PERL_ARGS_ASSERT_OP_DUMP;
11791184
do_op_dump(0, Perl_debug_log, o);
1185+
1186+
#ifdef DEBUGGING
1187+
if (was_m)
1188+
PL_debug |= DEBUG_m_FLAG;
1189+
#endif
11801190
}
11811191

11821192
/*
@@ -2397,12 +2407,20 @@ For an example of its output, see L<Devel::Peek>.
23972407
void
23982408
Perl_sv_dump(pTHX_ SV *sv)
23992409
{
2410+
#ifdef DEBUGGING
2411+
int was_m = 0;
2412+
if (DEBUG_m_TEST) {PL_debug &= ~DEBUG_m_FLAG; was_m++;}
2413+
#endif
24002414
PERL_ARGS_ASSERT_SV_DUMP;
24012415

24022416
if (SvROK(sv))
24032417
do_sv_dump(0, Perl_debug_log, sv, 0, 4, 0, 0);
24042418
else
24052419
do_sv_dump(0, Perl_debug_log, sv, 0, 0, 0, 0);
2420+
#ifdef DEBUGGING
2421+
if (was_m)
2422+
PL_debug |= DEBUG_m_FLAG;
2423+
#endif
24062424
}
24072425

24082426
/*

0 commit comments

Comments
 (0)