8170226: Implement setting jtreg @requires property vm.jvmci
authoriignatyev
Fri, 25 Nov 2016 11:55:33 +0300
changeset 42512 9e1dfd06e954
parent 42511 8009d4cba2ea
child 42513 b12c23d0240c
child 42528 125bc97e7569
child 42529 d01162cb85f4
8170226: Implement setting jtreg @requires property vm.jvmci Reviewed-by: kvn
test/jtreg-ext/requires/VMProps.java
--- a/test/jtreg-ext/requires/VMProps.java	Wed Nov 23 12:25:21 2016 +0300
+++ b/test/jtreg-ext/requires/VMProps.java	Fri Nov 25 11:55:33 2016 +0300
@@ -61,6 +61,7 @@
         map.put("vm.flightRecorder", vmFlightRecorder());
         map.put("vm.simpleArch", vmArch());
         map.put("vm.debug", vmDebug());
+        map.put("vm.jvmci", vmJvmci());
         vmGC(map); // vm.gc.X = true/false
 
         VMProps.dump(map);
@@ -157,6 +158,14 @@
     }
 
     /**
+     * @return true if VM supports JVMCI and false otherwise
+     */
+    protected String vmJvmci() {
+        // builds with jvmci have this flag
+        return "" + (WB.getBooleanVMFlag("EnableJVMCI") != null);
+    }
+
+    /**
      * For all existing GC sets vm.gc.X property.
      * Example vm.gc.G1=true means:
      *    VM supports G1