hotspot/test/testlibrary/com/oracle/java/testlibrary/Platform.java
changeset 28389 bbd61e9179a5
parent 27923 2c79bc396381
child 28489 f395f4b55ea1
--- a/hotspot/test/testlibrary/com/oracle/java/testlibrary/Platform.java	Tue Dec 23 12:40:13 2014 +0300
+++ b/hotspot/test/testlibrary/com/oracle/java/testlibrary/Platform.java	Wed Dec 24 19:32:13 2014 +0300
@@ -34,6 +34,7 @@
     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");
@@ -55,6 +56,10 @@
         return vmName.contains("Embedded");
     }
 
+    public static boolean isTieredSupported() {
+        return compiler.contains("Tiered Compilers");
+    }
+
     public static boolean is32bit() {
         return dataModel.equals("32");
     }