summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-11-11 14:54:27 +0100
committerNicholas Clark <nick@ccl4.org>2011-11-11 14:54:27 +0100
commit817b0f24a846649996c84ae294eed96f2ad880e7 (patch)
treedf5da6accf9d4f100332b4f060d189bf144abf77
parente6b4660ca7563fb6837ac6625f88adf7be254cde (diff)
downloadperl-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.
-rw-r--r--intrpvar.h2
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