summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-05-15 07:36:57 +0000
committerNicholas Clark <nick@ccl4.org>2007-05-15 07:36:57 +0000
commitd7f23a062a625a1f0067a15d3cea5401ea21006c (patch)
treed27293a7fec62e65eab4b9efa9a3dd5ea20764db /op.h
parenta4021b77cd29f9c157cba167a52eb3525afaf9ac (diff)
downloadperl-d7f23a062a625a1f0067a15d3cea5401ea21006c.tar.gz
BASEOP isn't an exact multiple of 8 bytes, so reordering pmop and cop
to put a 32 bit member first elimiates structure padding on LP64. p4raw-id: //depot/perl@31218
Diffstat (limited to 'op.h')
-rw-r--r--op.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/op.h b/op.h
index 13fb30ed27..2d46fcfd4c 100644
--- a/op.h
+++ b/op.h
@@ -313,6 +313,9 @@ struct listop {
struct pmop {
BASEOP
+ /* On LP64 putting this here takes advantage of the fact that BASEOP isn't
+ an exact multiple of 8 bytes to save structure padding. */
+ U32 op_pmflags;
OP * op_first;
OP * op_last;
#ifdef USE_ITHREADS
@@ -320,7 +323,6 @@ struct pmop {
#else
REGEXP * op_pmregexp; /* compiled expression */
#endif
- U32 op_pmflags;
union {
OP * op_pmreplroot; /* For OP_SUBST */
#ifdef USE_ITHREADS