Java Code Examples for jdk.test.lib.Platform#isPPC()
The following examples show how to use
jdk.test.lib.Platform#isPPC() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SupportedOS.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public boolean getAsBoolean() { if (Platform.isAix()) { // Actually, this works since AIX 7.1.3.30, but os.version property // is set to 7.1. return (Platform.getOsVersionMajor() > 7) || (Platform.getOsVersionMajor() == 7 && Platform.getOsVersionMinor() > 1); } else if (Platform.isLinux()) { if (Platform.isPPC()) { return (Platform.getOsVersionMajor() > 4) || (Platform.getOsVersionMajor() == 4 && Platform.getOsVersionMinor() > 1); } } return true; }
Example 2
Source File: ReservedStackTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override @jdk.internal.vm.annotation.ReservedStackAccess public void run() { counter = 0; decounter = deframe; test.initialize(); recursiveCall(); System.out.println("Framework got StackOverflowError at frame = " + counter); System.out.println("Test started execution at frame = " + (counter - deframe)); String result = test.getResult(); // The feature is not fully implemented on all platforms, // corruptions are still possible. boolean supportedPlatform = Platform.isAix() || (Platform.isLinux() && (Platform.isPPC() || Platform.isS390x() || Platform.isX64() || Platform.isX86() || Platform.isAArch64())) || Platform.isOSX() || Platform.isSolaris(); if (supportedPlatform && !result.contains("PASSED")) { System.out.println(result); throw new Error(result); } else { // Either the test passed or this platform is not supported. // On not supported platforms, we only expect the VM to // not crash during the test. This is especially important // on Windows where the detection of SOE in annotated // sections is implemented but the reserved zone mechanism // to avoid the corruption cannot be implemented yet // because of JDK-8067946 System.out.println("PASSED"); } }
Example 3
Source File: RTMGenericCommandLineOptionTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public void runTestCases() throws Throwable { if (Platform.isX86() || Platform.isX64() || Platform.isPPC()) { if (Platform.isServer()) { runX86SupportedVMTestCases(); } else { runX86UnsupportedVMTestCases(); } } else { runNonX86TestCases(); } }
Example 4
Source File: SupportedCPU.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public boolean getAsBoolean() { if (Platform.isPPC()) { return CPUInfo.hasFeature("tcheck"); } return CPUInfo.hasFeature("rtm"); }