summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-12-29 11:22:55 +0000
committerNicholas Clark <nick@ccl4.org>2008-12-29 11:22:55 +0000
commit9e1694326ed89111b35daf7589dacbe10253cdcd (patch)
treef693d078b3dc2967697a8c128302fa8d81d3741c
parent01c2a33d9c8801c319aa999a05dc0d7812571930 (diff)
downloadperl-9e1694326ed89111b35daf7589dacbe10253cdcd.tar.gz
PL_registered_mros can start with 1 hash bucket, as it will probably never
contain more than "dfs", and even if C3 is loaded, 2 buckets are less than the default of 8.
-rw-r--r--perl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 27aff7766a..7c5da008ad 100644
--- a/perl.c
+++ b/perl.c
@@ -462,6 +462,8 @@ perl_construct(pTHXx)
#endif
PL_registered_mros = newHV();
+ /* Start with 1 bucket, for DFS. It's unlikely we'll need more. */
+ HvMAX(PL_registered_mros) = 0;
ENTER;
}