< prev index next >

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

Print this page

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




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

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