summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2003-07-21 00:36:02 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-27 15:48:20 +0000
commit7996736c5ecb6da6273386229ce113837049152c (patch)
tree8890e38e9c2e349f70832a77e853ad6672182d1d /perl.c
parent2edcda664a46cf47ed5ee5520834c7e424efc8fd (diff)
downloadperl-7996736c5ecb6da6273386229ce113837049152c.tar.gz
Re: [PATCH] Re: Storing &PL_sv_undef as a hash key with perl-5.8.x
From: "Marcus Holland-Moritz" <mhx-perl@gmx.net> Message-ID: <006801c34efe$8aac1920$0c2f1fac@R2D2> p4raw-id: //depot/perl@20224
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 0968e26363..eb86c7238e 100644
--- a/perl.c
+++ b/perl.c
@@ -181,6 +181,9 @@ perl_construct(pTHXx)
SvNV(&PL_sv_yes);
SvREADONLY_on(&PL_sv_yes);
SvREFCNT(&PL_sv_yes) = (~(U32)0)/2;
+
+ SvREADONLY_on(&PL_sv_placeholder);
+ SvREFCNT(&PL_sv_placeholder) = (~(U32)0)/2;
}
PL_sighandlerp = Perl_sighandler;
@@ -783,6 +786,9 @@ perl_destruct(pTHXx)
SvREFCNT(&PL_sv_undef) = 0;
SvREADONLY_off(&PL_sv_undef);
+ SvREFCNT(&PL_sv_placeholder) = 0;
+ SvREADONLY_off(&PL_sv_placeholder);
+
Safefree(PL_origfilename);
Safefree(PL_reg_start_tmp);
if (PL_reg_curpm)