summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGisle Aas <gisle@aas.no>1998-07-04 03:04:08 +0200
committerGurusamy Sarathy <gsar@cpan.org>1998-07-04 05:46:42 +0000
commit8fb9a439a71a5e6b7adf7c46052298d23dd9cab7 (patch)
tree0786b4c9b7390da0c87e4b645ef68c51f208ffbf /perl.c
parent0c5b80af98159ce0a56841f0a002e78a266b5f09 (diff)
downloadperl-8fb9a439a71a5e6b7adf7c46052298d23dd9cab7.tar.gz
add patch preextend global string table, tweak for 512 entries
Subject: Re: [PATCH] Re: perl5.004_69 core dump Message-ID: <m3ra02v8nr.fsf@furu.g.aas.no> p4raw-id: //depot/perl@1305
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index 14357b716b..e2db42c84b 100644
--- a/perl.c
+++ b/perl.c
@@ -1859,8 +1859,7 @@ init_main_stash(void)
It is properly deallocated in perl_destruct() */
strtab = newHV();
HvSHAREKEYS_off(strtab); /* mandatory */
- Newz(506,((XPVHV*)SvANY(strtab))->xhv_array,
- sizeof(HE*) * (((XPVHV*)SvANY(strtab))->xhv_max + 1), char);
+ hv_ksplit(strtab, 512);
curstash = defstash = newHV();
curstname = newSVpv("main",4);