From 7d6b94bd41d6d1ff762b10b7f7f43889321d3a3f Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 29 Sep 2022 12:33:21 -0600 Subject: [PATCH] sv.c: Set phase to CONSTRUCT on interpreter being cloned So far this hadn't been an issue, but it will be for a future commit. --- sv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sv.c b/sv.c index a8578b0..13a5ee5 100644 --- a/sv.c +++ b/sv.c @@ -15423,6 +15423,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, /* for each stash, determine whether its objects should be cloned */ S_visit(proto_perl, do_mark_cloneable_stash, SVt_PVHV, SVTYPEMASK); + my_perl->Iphase = PERL_PHASE_CONSTRUCT; PERL_SET_THX(my_perl); #ifdef DEBUGGING -- 1.8.3.1