summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-11-02 10:12:38 +0000
committerNicholas Clark <nick@ccl4.org>2010-11-02 10:12:38 +0000
commitbc85b3a10e47c5c8502769213905752616fa4a91 (patch)
tree295925053da4bc20bb7fcdf2e9a7f415d72d8cf7
parentab2998a3d88559906e859adbad7feb996f737cb0 (diff)
downloadperl-bc85b3a10e47c5c8502769213905752616fa4a91.tar.gz
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.
-rw-r--r--hv.h2
1 files changed, 1 insertions, 1 deletions
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: */