summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-05-06 13:11:54 +0000
committerNicholas Clark <nick@ccl4.org>2005-05-06 13:11:54 +0000
commit1e8b957a812d4c5fc1c3531f8d649afc13410b56 (patch)
tree0ed3b2cc8657c747cf2d70417bd82892e5a64e45 /hv.c
parentcedf83e7a0763513fe2e7475853a64f861e11586 (diff)
downloadperl-1e8b957a812d4c5fc1c3531f8d649afc13410b56.tar.gz
Make the arena size changeable at compile time, and up the default by
a factor of 4. p4raw-id: //depot/perl@24405
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hv.c b/hv.c
index 8345ee5460..2f2c7f374a 100644
--- a/hv.c
+++ b/hv.c
@@ -61,12 +61,12 @@ S_more_he(pTHX)
register HE* he;
register HE* heend;
XPV *ptr;
- New(54, ptr, 1008/sizeof(XPV), XPV);
+ New(54, ptr, PERL_ARENA_SIZE/sizeof(XPV), XPV);
ptr->xpv_pv = (char*)PL_he_arenaroot;
PL_he_arenaroot = ptr;
he = (HE*)ptr;
- heend = &he[1008 / sizeof(HE) - 1];
+ heend = &he[PERL_ARENA_SIZE / sizeof(HE) - 1];
PL_he_root = ++he;
while (he < heend) {
HeNEXT(he) = (HE*)(he + 1);