--- old/test/jtreg-ext/requires/VMProps.java 2016-08-25 21:45:10.469081081 +0300 +++ new/test/jtreg-ext/requires/VMProps.java 2016-08-25 21:45:10.417081082 +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