From bc85b3a10e47c5c8502769213905752616fa4a91 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 2 Nov 2010 10:12:38 +0000 Subject: Reorder struct xpvhv_aux to make two I32s adjacent. This avoids structure padding on architectures with 64 bit alignment for pointers. For example, on x86_64 it reduces the structure size from 48 to 40 bytes. --- hv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hv.h') diff --git a/hv.h b/hv.h index a85a0d0095..81a4d89beb 100644 --- a/hv.h +++ b/hv.h @@ -78,7 +78,6 @@ struct xpvhv_aux { AV *xhv_backreferences; /* back references for weak references */ HE *xhv_eiter; /* current entry of iterator */ I32 xhv_riter; /* current root of iterator */ - struct mro_meta *xhv_mro_meta; /* Concerning xhv_name_count: When non-zero, xhv_name is actually a pointer * to an array of HEK pointers, this being the length. The first element is * the name of the stash, which may be NULL. If xhv_name_count is positive, @@ -86,6 +85,7 @@ struct xpvhv_aux { * tive, then xhv_name[1] is the first effective name. */ I32 xhv_name_count; + struct mro_meta *xhv_mro_meta; }; /* hash structure: */ -- cgit v1.2.1