diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-08-23 16:46:32 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-08-23 16:46:32 +0100 |
commit | 829cd18aa7f45221b0c0a3d4893cb4377bef2063 (patch) | |
tree | d11fd0342cedf7303a89a8fbb4cd02a7cdbf88d5 /sv.c | |
parent | 91d20606b15aa89b279e0b6a41010a263ba6856f (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |