diff options
author | David Mitchell <davem@iabyn.com> | 2014-02-15 16:38:31 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2014-02-28 13:42:49 +0000 |
commit | 9075437773fb626926ef91a510090f595c08c653 (patch) | |
tree | 2a599141d66fe1b2d539b871b696565bf8bafafe /hv.h | |
parent | 0c22a733be05b5c1393fc9a2e337dbeed2881596 (diff) | |
download | perl-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |