8186721: AOT tests fail with: section alignment is not valid: 128

Add missing negation in assert chech, add -ea -esa to AOT testing

Reviewed-by: dlong
This commit is contained in:
Vladimir Kozlov 2017-08-24 13:11:02 -07:00
parent b69ce81b11
commit 3eb36f9521
2 changed files with 4 additions and 1 deletions
hotspot
src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/pecoff
test/compiler/aot

@ -50,7 +50,7 @@ final class PECoffSection {
byte[] Name = sectName.getBytes();
int max = Name.length <= IMAGE_SECTION_HEADER.Name.sz ? Name.length : IMAGE_SECTION_HEADER.Name.sz;
assert (sectAlign < 1 || sectAlign > 1024 || (sectAlign & (sectAlign - 1)) != 0) : "section alignment is not valid: " + sectAlign;
assert !(sectAlign < 1 || sectAlign > 1024 || (sectAlign & (sectAlign - 1)) != 0) : "section alignment is not valid: " + sectAlign;
align = sectAlign;
// Using 32 because IMAGE_SCN_ALIGN_*BYTES is value + 1

@ -113,6 +113,9 @@ public class AotCompiler {
args.add("--linker-path");
args.add(linker);
}
// Execute with asserts
args.add("-J-ea");
args.add("-J-esa");
return launchJaotc(args, extraopts);
}