8151280: update hotspot tests to use vm.compMode instead of their own logic
authortpivovarova
Wed, 13 Jul 2016 18:03:18 +0300
changeset 39949 ca77d07755bc
parent 39948 cfb05dbae510
child 39950 0577dee8dc82
8151280: update hotspot tests to use vm.compMode instead of their own logic Summary: Update hs compiler tests to use vm.compMode instead of their own logic and to get VM mode using j.t.l.Platform Reviewed-by: kvn, dpochepk Contributed-by: igor.ignatyev@oracle.com
test/lib/share/classes/jdk/test/lib/Platform.java
--- a/test/lib/share/classes/jdk/test/lib/Platform.java	Mon Jul 11 17:23:20 2016 -0700
+++ b/test/lib/share/classes/jdk/test/lib/Platform.java	Wed Jul 13 18:03:18 2016 +0300
@@ -26,15 +26,15 @@
 import java.util.regex.Pattern;
 
 public class Platform {
+    public  static final String vmName      = System.getProperty("java.vm.name");
+    public  static final String vmInfo      = System.getProperty("java.vm.info");
     private static final String osName      = System.getProperty("os.name");
     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 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");
-    private static final String vmInfo      = System.getProperty("java.vm.info");
 
     public static boolean isClient() {
         return vmName.endsWith(" Client VM");