summaryrefslogtreecommitdiff
path: root/hv.h
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.h
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.h')
-rw-r--r--hv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hv.h b/hv.h
index 66edfc2d9a..498e6f01f6 100644
--- a/hv.h
+++ b/hv.h
@@ -119,6 +119,7 @@ struct xpvhv_aux {
used to detect each() after insert for warnings */
#endif
U32 xhv_fill_lazy;
+ U32 xhv_aux_flags; /* assorted extra flags */
};
/* hash structure: */