summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2014-02-15 16:38:31 +0000
committerDavid Mitchell <davem@iabyn.com>2014-02-28 13:42:49 +0000
commit9075437773fb626926ef91a510090f595c08c653 (patch)
tree2a599141d66fe1b2d539b871b696565bf8bafafe /hv.h
parent0c22a733be05b5c1393fc9a2e337dbeed2881596 (diff)
downloadperl-9075437773fb626926ef91a510090f595c08c653.tar.gz
gv_check(): use aux flag rather than IsCOW
Currently the SVf_IsCOW flag doesn't have any meaning for HVs, except that it is used in the specific case of gv_check() to temporarily mark a stash as being scanned. Since stashes will have the HV_AUX fields, we can use a flags bit in the new xhv_aux_flags field instead. This then potentially frees up the SVf_IsCOW for use as a new general flag bit for *all* HVs (including non-stash ones).
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hv.h b/hv.h
index 498e6f01f6..5ad1459a2e 100644
--- a/hv.h
+++ b/hv.h
@@ -122,6 +122,8 @@ struct xpvhv_aux {
U32 xhv_aux_flags; /* assorted extra flags */
};
+#define HvAUXf_SCAN_STASH 0x1 /* stash is being scanned by gv_check */
+
/* hash structure: */
/* This structure must match the beginning of struct xpvmg in sv.h. */
struct xpvhv {