< prev index next >

test/lib/jdk/test/lib/Platform.java

Print this page

178     public static boolean isSlowDebugBuild() {
179         return (jdkDebug.toLowerCase().equals("slowdebug"));
180     }
181 
182     public static boolean isFastDebugBuild() {
183         return (jdkDebug.toLowerCase().equals("fastdebug"));
184     }
185 
186     public static String getVMVersion() {
187         return vmVersion;
188     }
189 
190     public static boolean isAArch64() {
191         return isArch("aarch64");
192     }
193 
194     public static boolean isARM() {
195         return isArch("arm.*");
196     }
197 




198     public static boolean isPPC() {
199         return isArch("ppc.*");
200     }
201 
202     // Returns true for IBM z System running linux.
203     public static boolean isS390x() {
204         return isArch("s390.*") || isArch("s/390.*") || isArch("zArch_64");
205     }
206 
207     public static boolean isX64() {
208         // On OSX it's 'x86_64' and on other (Linux and Windows) platforms it's 'amd64'
209         return isArch("(amd64)|(x86_64)");
210     }
211 
212     public static boolean isX86() {
213         // On Linux it's 'i386', Windows 'x86' without '_64' suffix.
214         return isArch("(i386)|(x86(?!_64))");
215     }
216 
217     public static String getOsArch() {

178     public static boolean isSlowDebugBuild() {
179         return (jdkDebug.toLowerCase().equals("slowdebug"));
180     }
181 
182     public static boolean isFastDebugBuild() {
183         return (jdkDebug.toLowerCase().equals("fastdebug"));
184     }
185 
186     public static String getVMVersion() {
187         return vmVersion;
188     }
189 
190     public static boolean isAArch64() {
191         return isArch("aarch64");
192     }
193 
194     public static boolean isARM() {
195         return isArch("arm.*");
196     }
197 
198     public static boolean isRiscv64() {
199         return isArch("riscv64");
200     }
201 
202     public static boolean isPPC() {
203         return isArch("ppc.*");
204     }
205 
206     // Returns true for IBM z System running linux.
207     public static boolean isS390x() {
208         return isArch("s390.*") || isArch("s/390.*") || isArch("zArch_64");
209     }
210 
211     public static boolean isX64() {
212         // On OSX it's 'x86_64' and on other (Linux and Windows) platforms it's 'amd64'
213         return isArch("(amd64)|(x86_64)");
214     }
215 
216     public static boolean isX86() {
217         // On Linux it's 'i386', Windows 'x86' without '_64' suffix.
218         return isArch("(i386)|(x86(?!_64))");
219     }
220 
221     public static String getOsArch() {
< prev index next >