From 9075437773fb626926ef91a510090f595c08c653 Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Sat, 15 Feb 2014 16:38:31 +0000 Subject: 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). --- hv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hv.h') 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 { -- cgit v1.2.1