< prev index next >

test/testlibrary/com/oracle/java/testlibrary/Platform.java

Print this page
rev 7590 : 8068183: Add isTieredSupported method to c.o.j.t.Platforms
Reviewed-by:

@@ -32,10 +32,11 @@
     private static final String vmVersion   = System.getProperty("java.vm.version");
     private static final String javaVersion = System.getProperty("java.version");
     private static final String osArch      = System.getProperty("os.arch");
     private static final String vmName      = System.getProperty("java.vm.name");
     private static final String userName    = System.getProperty("user.name");
+    private static final String compiler    = System.getProperty("sun.management.compiler");
 
     public static boolean isClient() {
         return vmName.endsWith(" Client VM");
     }
 

@@ -53,10 +54,14 @@
 
     public static boolean isEmbedded() {
         return vmName.contains("Embedded");
     }
 
+    public static boolean isTieredSupported() {
+        return compiler.contains("Tiered Compilers");
+    }
+
     public static boolean is32bit() {
         return dataModel.equals("32");
     }
 
     public static boolean is64bit() {
< prev index next >