8155219: [TESTBUG] Rewrite compiler/ciReplay/TestVM.sh in java
authordpochepk
Thu, 20 Oct 2016 16:53:35 +0300
changeset 42006 98146f279bba
parent 42005 7c65b06a0b86
child 42007 07f0f719b2b4
8155219: [TESTBUG] Rewrite compiler/ciReplay/TestVM.sh in java Reviewed-by: kvn
test/jtreg-ext/requires/VMProps.java
--- a/test/jtreg-ext/requires/VMProps.java	Wed Sep 28 16:41:38 2016 +0200
+++ b/test/jtreg-ext/requires/VMProps.java	Thu Oct 20 16:53:35 2016 +0300
@@ -59,6 +59,7 @@
         map.put("vm.bits", vmBits());
         map.put("vm.flightRecorder", vmFlightRecorder());
         map.put("vm.simpleArch", vmArch());
+        map.put("vm.debug", vmDebug());
         vmGC(map); // vm.gc.X = true/false
 
         dump(map);
@@ -148,6 +149,13 @@
     }
 
     /**
+     * @return debug level value extracted from the "jdk.debug" property.
+     */
+    protected String vmDebug() {
+        return "" + System.getProperty("jdk.debug").contains("debug");
+    }
+
+    /**
      * For all existing GC sets vm.gc.X property.
      * Example vm.gc.G1=true means:
      *    VM supports G1