summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-05-26 12:27:47 +0000
committerNicholas Clark <nick@ccl4.org>2005-05-26 12:27:47 +0000
commitc4a9c09d5b30a93b6241aff3c9915e33e4e41eeb (patch)
tree021616b02c99c2a1b05bb9bffaec786f052e2854 /sv.c
parent94a66813331bb98469ac6bbd2df0367b54b25a8e (diff)
downloadperl-c4a9c09d5b30a93b6241aff3c9915e33e4e41eeb.tar.gz
We know how big the global string table will be, so use that
information. p4raw-id: //depot/perl@24583
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 74c05c8404..297ddbe36a 100644
--- a/sv.c
+++ b/sv.c
@@ -11703,7 +11703,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
/* create (a non-shared!) shared string table */
PL_strtab = newHV();
HvSHAREKEYS_off(PL_strtab);
- hv_ksplit(PL_strtab, 512);
+ hv_ksplit(PL_strtab, HvTOTALKEYS(proto_perl->Istrtab));
ptr_table_store(PL_ptr_table, proto_perl->Istrtab, PL_strtab);
PL_compiling = proto_perl->Icompiling;