summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2014-02-15 16:15:11 +0000
committerDavid Mitchell <davem@iabyn.com>2014-02-28 13:42:49 +0000
commit0c22a733be05b5c1393fc9a2e337dbeed2881596 (patch)
treef1970541f1fcb7a3ff4d4eded42d111fd0a385aa /hv.c
parentb024352e692dd231fd32548e325d75b667bff29f (diff)
downloadperl-0c22a733be05b5c1393fc9a2e337dbeed2881596.tar.gz
add aux_flags field to HVs with aux struct
Add an extra U32 general flags field to the xpvhv_aux struct (which is used on HVs such as stashes, that need extra fields). On 64-bit systems, this doesn't consume any extra space since there's already an odd number of I32/U32 fields. On 32-bit systems it will consume an extra 4 bytes. But of course only on those hashes that have the aux struct. As well as providing extra flags in the AUX case, it will also allow us to free up at least one general flag bit for HVs - see next commit.
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hv.c b/hv.c
index a9322aac87..a4624f06e2 100644
--- a/hv.c
+++ b/hv.c
@@ -1979,6 +1979,7 @@ S_hv_auxinit(pTHX_ HV *hv) {
iter->xhv_name_count = 0;
iter->xhv_backreferences = 0;
iter->xhv_mro_meta = NULL;
+ iter->xhv_aux_flags = 0;
return iter;
}