test/jtreg-ext/requires/VMProps.java
changeset 42006 98146f279bba
parent 39941 fdbe314f004f
child 42511 8009d4cba2ea
equal deleted inserted replaced
42005:7c65b06a0b86 42006:98146f279bba
    57         map.put("vm.flavor", vmFlavor());
    57         map.put("vm.flavor", vmFlavor());
    58         map.put("vm.compMode", vmCompMode());
    58         map.put("vm.compMode", vmCompMode());
    59         map.put("vm.bits", vmBits());
    59         map.put("vm.bits", vmBits());
    60         map.put("vm.flightRecorder", vmFlightRecorder());
    60         map.put("vm.flightRecorder", vmFlightRecorder());
    61         map.put("vm.simpleArch", vmArch());
    61         map.put("vm.simpleArch", vmArch());
       
    62         map.put("vm.debug", vmDebug());
    62         vmGC(map); // vm.gc.X = true/false
    63         vmGC(map); // vm.gc.X = true/false
    63 
    64 
    64         dump(map);
    65         dump(map);
    65         return map;
    66         return map;
    66     }
    67     }
   146         }
   147         }
   147         return "false";
   148         return "false";
   148     }
   149     }
   149 
   150 
   150     /**
   151     /**
       
   152      * @return debug level value extracted from the "jdk.debug" property.
       
   153      */
       
   154     protected String vmDebug() {
       
   155         return "" + System.getProperty("jdk.debug").contains("debug");
       
   156     }
       
   157 
       
   158     /**
   151      * For all existing GC sets vm.gc.X property.
   159      * For all existing GC sets vm.gc.X property.
   152      * Example vm.gc.G1=true means:
   160      * Example vm.gc.G1=true means:
   153      *    VM supports G1
   161      *    VM supports G1
   154      *    User either set G1 explicitely (-XX:+UseG1GC) or did not set any GC
   162      *    User either set G1 explicitely (-XX:+UseG1GC) or did not set any GC
   155      * @param map - property-value pairs
   163      * @param map - property-value pairs