8309671: Avoid using jvmci.Compiler property to determine if Graal is enabled
Reviewed-by: dnsimon, sspitsyn
This commit is contained in:
parent
1a9edb8df9
commit
4f23fc1f27
@ -252,10 +252,9 @@ public class HeapMonitor {
|
||||
|
||||
VMOption enableJVMCI = bean.getVMOption("EnableJVMCI");
|
||||
VMOption useJVMCICompiler = bean.getVMOption("UseJVMCICompiler");
|
||||
String compiler = System.getProperty("jvmci.Compiler");
|
||||
|
||||
checkLines = !(enableJVMCI.getValue().equals("true")
|
||||
&& useJVMCICompiler.getValue().equals("true") && compiler.equals("graal"));
|
||||
&& useJVMCICompiler.getValue().equals("true"));
|
||||
} catch (Exception e) {
|
||||
// NOP.
|
||||
}
|
||||
|
@ -63,7 +63,6 @@ public class Compiler {
|
||||
* Graal is enabled if following conditions are true:
|
||||
* - we are not in Interpreter mode
|
||||
* - UseJVMCICompiler flag is true
|
||||
* - jvmci.Compiler variable is equal to 'graal'
|
||||
* - TieredCompilation is not used or TieredStopAtLevel is greater than 3
|
||||
* No need to check client mode because it set UseJVMCICompiler to false.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user