< prev index next >

test/jtreg-ext/requires/VMProps.java

Print this page




 236         }
 237     }
 238 
 239     /**
 240      * Selected final flag.
 241      * @param map - property-value pairs
 242      * @param flagName - flag name
 243      */
 244     private void vmOptFinalFlag(Map<String, String> map, String flagName) {
 245         String value = WB.getBooleanVMFlag(flagName) ? "true" : "false";
 246         map.put("vm.opt.final." + flagName, value);
 247     }
 248 
 249     /**
 250      * Selected sets of final flags.
 251      * @param map -property-value pairs
 252      */
 253     protected void vmOptFinalFlags(Map<String, String> map) {
 254         vmOptFinalFlag(map, "ClassUnloading");
 255         vmOptFinalFlag(map, "UseCompressedOops");

 256     }
 257 
 258     /**
 259      * @return true if VM runs RTM supported OS and false otherwise.
 260      */
 261     protected String vmRTMOS() {
 262         boolean isRTMOS = true;
 263 
 264         if (Platform.isAix()) {
 265             // Actually, this works since AIX 7.1.3.30, but os.version property
 266             // is set to 7.1.
 267             isRTMOS = (Platform.getOsVersionMajor()  > 7) ||
 268                       (Platform.getOsVersionMajor() == 7 && Platform.getOsVersionMinor() > 1);
 269 
 270         } else if (Platform.isLinux()) {
 271             if (Platform.isPPC()) {
 272                 isRTMOS = (Platform.getOsVersionMajor()  > 4) ||
 273                           (Platform.getOsVersionMajor() == 4 && Platform.getOsVersionMinor() > 1);
 274             }
 275         }




 236         }
 237     }
 238 
 239     /**
 240      * Selected final flag.
 241      * @param map - property-value pairs
 242      * @param flagName - flag name
 243      */
 244     private void vmOptFinalFlag(Map<String, String> map, String flagName) {
 245         String value = WB.getBooleanVMFlag(flagName) ? "true" : "false";
 246         map.put("vm.opt.final." + flagName, value);
 247     }
 248 
 249     /**
 250      * Selected sets of final flags.
 251      * @param map -property-value pairs
 252      */
 253     protected void vmOptFinalFlags(Map<String, String> map) {
 254         vmOptFinalFlag(map, "ClassUnloading");
 255         vmOptFinalFlag(map, "UseCompressedOops");
 256         vmOptFinalFlag(map, "UseCompressedClassPointers");
 257     }
 258 
 259     /**
 260      * @return true if VM runs RTM supported OS and false otherwise.
 261      */
 262     protected String vmRTMOS() {
 263         boolean isRTMOS = true;
 264 
 265         if (Platform.isAix()) {
 266             // Actually, this works since AIX 7.1.3.30, but os.version property
 267             // is set to 7.1.
 268             isRTMOS = (Platform.getOsVersionMajor()  > 7) ||
 269                       (Platform.getOsVersionMajor() == 7 && Platform.getOsVersionMinor() > 1);
 270 
 271         } else if (Platform.isLinux()) {
 272             if (Platform.isPPC()) {
 273                 isRTMOS = (Platform.getOsVersionMajor()  > 4) ||
 274                           (Platform.getOsVersionMajor() == 4 && Platform.getOsVersionMinor() > 1);
 275             }
 276         }


< prev index next >