test/jtreg-ext/requires/VMProps.java
changeset 51341 09cc8813ae51
parent 51251 0a7a0a6dfa22
child 51753 763aa4d1d596
equal deleted inserted replaced
51340:818768cd1c6c 51341:09cc8813ae51
    90         map.put("vm.cds", vmCDS());
    90         map.put("vm.cds", vmCDS());
    91         map.put("vm.cds.custom.loaders", vmCDSForCustomLoaders());
    91         map.put("vm.cds.custom.loaders", vmCDSForCustomLoaders());
    92         map.put("vm.cds.archived.java.heap", vmCDSForArchivedJavaHeap());
    92         map.put("vm.cds.archived.java.heap", vmCDSForArchivedJavaHeap());
    93         // vm.graal.enabled is true if Graal is used as JIT
    93         // vm.graal.enabled is true if Graal is used as JIT
    94         map.put("vm.graal.enabled", isGraalEnabled());
    94         map.put("vm.graal.enabled", isGraalEnabled());
       
    95         map.put("vm.compiler1.enabled", isCompiler1Enabled());
       
    96         map.put("vm.compiler2.enabled", isCompiler2Enabled());
    95         map.put("docker.support", dockerSupport());
    97         map.put("docker.support", dockerSupport());
    96         map.put("release.implementor", implementor());
    98         map.put("release.implementor", implementor());
    97         vmGC(map); // vm.gc.X = true/false
    99         vmGC(map); // vm.gc.X = true/false
    98         vmOptFinalFlags(map);
   100         vmOptFinalFlags(map);
    99 
   101 
   388      */
   390      */
   389     protected String isGraalEnabled() {
   391     protected String isGraalEnabled() {
   390         return Compiler.isGraalEnabled() ? "true" : "false";
   392         return Compiler.isGraalEnabled() ? "true" : "false";
   391     }
   393     }
   392 
   394 
       
   395     /**
       
   396      * Check if Compiler1 is present.
       
   397      *
       
   398      * @return true if Compiler1 is used as JIT compiler, either alone or as part of the tiered system.
       
   399      */
       
   400     protected String isCompiler1Enabled() {
       
   401         return Compiler.isC1Enabled() ? "true" : "false";
       
   402     }
       
   403 
       
   404     /**
       
   405      * Check if Compiler2 is present.
       
   406      *
       
   407      * @return true if Compiler2 is used as JIT compiler, either alone or as part of the tiered system.
       
   408      */
       
   409     protected String isCompiler2Enabled() {
       
   410         return Compiler.isC2Enabled() ? "true" : "false";
       
   411     }
   393 
   412 
   394    /**
   413    /**
   395      * A simple check for docker support
   414      * A simple check for docker support
   396      *
   415      *
   397      * @return true if docker is supported in a given environment
   416      * @return true if docker is supported in a given environment