Skip to content

Commit b173165

Browse files
author
Father Chrysostomos
committed
Restore profile dump under PERL_DESTRUCT_LEVEL
$ ./perl -Ilib -DP -e0 filter_add func 1000dfa20 () filter_read 0: via function 7f8fd302fe88 () filter_read 0: via function 7f8fd302fe88 () filter_del func 1000dfa20 EXECUTING... 1 nextstate 1 enter 1 leave $ PERL_DESTRUCT_LEVEL=2 ./perl -Ilib -DP -e0 filter_add func 107b81a20 () filter_read 0: via function 7f81e882fea0 () filter_read 0: via function 7f81e882fea0 () filter_del func 107b81a20 EXECUTING... The list of ops executed is omitted if I set PERL_DESTRUCT_LEVEL=2. This was probably broken by bf9cdc6.
1 parent 9a3da3a commit b173165

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

perl.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1290,10 +1290,11 @@ perl_destruct(pTHXx)
12901290
TAINTING_set(FALSE);
12911291
TAINT_WARN_set(FALSE);
12921292
PL_hints = 0; /* Reset hints. Should hints be per-interpreter ? */
1293-
PL_debug = 0;
12941293

12951294
DEBUG_P(debprofdump());
12961295

1296+
PL_debug = 0;
1297+
12971298
#ifdef USE_REENTRANT_API
12981299
Perl_reentrant_free(aTHX);
12991300
#endif

0 commit comments

Comments
 (0)