summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-10-31 14:41:27 +0100
committerYves Orton <demerphq@gmail.com>2022-11-01 11:57:31 +0100
commit6848aea2c844896efb347e6a210098c7dd447567 (patch)
treefd5ac721106fe55e061272248af6c7982bf1966a /perl.c
parent4bd3be3563698eb6e927a62c29755b216b926a27 (diff)
downloadperl-6848aea2c844896efb347e6a210098c7dd447567.tar.gz
op.c - use refcounted pv pointers for cop_warnings
this allows multiple ops to share the same underlying warning bit vector. the vectors are not deduped, however they are efficiently copied and shared.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index a76fbf7905..67906d7019 100644
--- a/perl.c
+++ b/perl.c
@@ -409,6 +409,7 @@ perl_construct(pTHXx)
#ifdef USE_ITHREADS
PL_compiling.cop_file = NULL;
+ PL_compiling.cop_warnings = NULL;
#endif
Zero(PL_sv_consts, SV_CONSTS_COUNT, SV*);