diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-11-11 14:54:27 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-11-11 14:54:27 +0100 |
commit | 817b0f24a846649996c84ae294eed96f2ad880e7 (patch) | |
tree | df5da6accf9d4f100332b4f060d189bf144abf77 /intrpvar.h | |
parent | e6b4660ca7563fb6837ac6625f88adf7be254cde (diff) | |
download | perl-817b0f24a846649996c84ae294eed96f2ad880e7.tar.gz |
Re-order intrpvar.h to avoid false warnings about holes.
Under the default configuration options for ithreads on x86_64 *nix,
PERL_IMPLICIT_CONTEXT is defined. The variables specific to this are at the
end of the interpreter struct, and their size is not an integer multiple of
its alignment constraint. Hence there will always be a "hole". Move the
"hole" so that it is beyond the end of the structure. This avoids the Linux
tool "pahole", used for finding wasted space, from a false positive report
of a hole that can't be avoided.
Diffstat (limited to 'intrpvar.h')
-rw-r--r-- | intrpvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intrpvar.h b/intrpvar.h index 1855487266..0b32657960 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -734,8 +734,8 @@ PERLVAR(I, reentrant_retint, int) /* Integer return value from reentrant functio #define PERL_LAST_5_16_0_INTERP_MEMBER Ireentrant_retint #ifdef PERL_IMPLICIT_CONTEXT -PERLVARI(I, my_cxt_size, int, 0) /* size of PL_my_cxt_list */ PERLVARI(I, my_cxt_list, void **, NULL) /* per-module array of MY_CXT pointers */ +PERLVARI(I, my_cxt_size, int, 0) /* size of PL_my_cxt_list */ # ifdef PERL_GLOBAL_STRUCT_PRIVATE PERLVARI(I, my_cxt_keys, const char **, NULL) /* per-module array of pointers to MY_CXT_KEY constants */ # endif |