summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorFlorian Ragwitz <rafl@debian.org>2010-10-01 23:28:36 +0200
committerFlorian Ragwitz <rafl@debian.org>2010-11-14 17:18:05 +0100
commit627364f14af689f968a4854d02bdcc59ee644657 (patch)
tree46d02fa1c9cc5bc3134242965ad1851b66ee7a21 /mg.c
parent9ebf26ad4d30e289feeaec20ee238d6874f4b27e (diff)
downloadperl-627364f14af689f968a4854d02bdcc59ee644657.tar.gz
Eliminate PL_dirty
It now only exists as a compatibility macro for extensions that want to introspect it.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 01240a7449..4a342d4d81 100644
--- a/mg.c
+++ b/mg.c
@@ -1617,7 +1617,7 @@ Perl_magic_clearisa(pTHX_ SV *sv, MAGIC *mg)
PERL_ARGS_ASSERT_MAGIC_CLEARISA;
/* Bail out if destruction is going on */
- if(PL_dirty) return 0;
+ if(PL_phase == PERL_PHASE_DESTRUCT) return 0;
if (sv)
av_clear(MUTABLE_AV(sv));