diff test/testlibrary/com/oracle/java/testlibrary/Platform.java @ 14661:bbfe3ac1471d

8007270: Make IsMethodCompilable test work with tiered Summary: Only c2 compiles counts toward cutoff Reviewed-by: kvn, roland
author neliasso
date Tue, 28 Jan 2014 15:05:46 +0100
parents c1fbf21c7397
children 92aa6797d639 a0eb3f61d34a
line wrap: on
line diff
--- a/test/testlibrary/com/oracle/java/testlibrary/Platform.java	Mon Mar 03 08:04:14 2014 +0100
+++ b/test/testlibrary/com/oracle/java/testlibrary/Platform.java	Tue Jan 28 15:05:46 2014 +0100
@@ -28,6 +28,15 @@
     private static final String dataModel   = System.getProperty("sun.arch.data.model");
     private static final String vmVersion   = System.getProperty("java.vm.version");
     private static final String osArch      = System.getProperty("os.arch");
+    private static final String vmName      = System.getProperty("java.vm.name");
+
+     public static boolean isClient() {
+         return vmName.endsWith(" Client VM");
+     }
+
+     public static boolean isServer() {
+         return vmName.endsWith(" Server VM");
+     }
 
     public static boolean is32bit() {
         return dataModel.equals("32");