diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-05-15 07:36:57 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-05-15 07:36:57 +0000 |
commit | d7f23a062a625a1f0067a15d3cea5401ea21006c (patch) | |
tree | d27293a7fec62e65eab4b9efa9a3dd5ea20764db /op.h | |
parent | a4021b77cd29f9c157cba167a52eb3525afaf9ac (diff) | |
download | perl-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |