This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re-order intrpvar.h to avoid false warnings about holes.
authorNicholas Clark <nick@ccl4.org>
Fri, 11 Nov 2011 13:54:27 +0000 (14:54 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 11 Nov 2011 13:54:27 +0000 (14:54 +0100)
commit817b0f24a846649996c84ae294eed96f2ad880e7
treedf5da6accf9d4f100332b4f060d189bf144abf77
parente6b4660ca7563fb6837ac6625f88adf7be254cde
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.
intrpvar.h