changeset 2404:8664e4ad5303

8170226: Implement setting jtreg @requires property vm.jvmci Reviewed-by: kvn
author iignatyev
date Fri, 25 Nov 2016 11:55:33 +0300
parents 19c80d487909
children 74485ef9aacb c14f9a7b4cab e7c91db2cd25
files test/jtreg-ext/requires/VMProps.java
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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