8359126: [AIX] new test TestImplicitNullChecks.java fails

Reviewed-by: rcastanedalo, dbriemann
This commit is contained in:
Martin Doerr 2025-06-11 08:28:31 +00:00
parent 9586817cea
commit abc76c6b5b
2 changed files with 8 additions and 2 deletions

View File

@ -67,7 +67,10 @@ public class TestImplicitNullChecks {
}
@Test
@IR(applyIfOr = {"UseZGC", "true", "UseG1GC", "true"},
// On AIX, implicit null checks are limited because the zero page is
// readable (but not writable). See os::zero_page_read_protected().
@IR(applyIfPlatform = {"aix", "false"},
applyIfOr = {"UseZGC", "true", "UseG1GC", "true"},
counts = {IRNode.NULL_CHECK, "1"},
phase = CompilePhase.FINAL_CODE)
static Object testLoad(Outer o) {

View File

@ -62,6 +62,7 @@ public class IREncodingPrinter {
// as adding non-existent platforms can lead to skipped tests.
private static final List<String> irTestingPlatforms = new ArrayList<String>(Arrays.asList(
// os.family
"aix",
"linux",
"mac",
"windows",
@ -346,7 +347,9 @@ public class IREncodingPrinter {
}
String os = "";
if (Platform.isLinux()) {
if (Platform.isAix()) {
os = "aix";
} else if (Platform.isLinux()) {
os = "linux";
} else if (Platform.isOSX()) {
os = "mac";