summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-08-23 16:46:32 +0100
committerNicholas Clark <nick@ccl4.org>2010-08-23 16:46:32 +0100
commit829cd18aa7f45221b0c0a3d4893cb4377bef2063 (patch)
treed11fd0342cedf7303a89a8fbb4cd02a7cdbf88d5 /sv.c
parent91d20606b15aa89b279e0b6a41010a263ba6856f (diff)
downloadperl-829cd18aa7f45221b0c0a3d4893cb4377bef2063.tar.gz
In bodies_by_type in sv.c, no need to store for values for HEs.
HEs use 0th root for their arenas, as SVt_NULL doesn't need an arena. But no code in sv.c needs to know the size details for HEs, because values are all passed in explicitly from S_new_he() in hv.c
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index c9ab89e649..56bf8b11f5 100644
--- a/sv.c
+++ b/sv.c
@@ -839,8 +839,8 @@ struct body_details {
+ sizeof (((type*)SvANY((const SV *)0))->last_member)
static const struct body_details bodies_by_type[] = {
- { sizeof(HE), 0, 0, SVt_NULL,
- FALSE, NONV, NOARENA, FIT_ARENA(0, sizeof(HE)) },
+ /* HEs use this offset for their arena. */
+ { 0, 0, 0, SVt_NULL, FALSE, NONV, NOARENA, 0 },
/* The bind placeholder pretends to be an RV for now.
Also it's marked as "can't upgrade" to stop anyone using it before it's