8309671: Avoid using jvmci.Compiler property to determine if Graal is enabled

Reviewed-by: dnsimon, sspitsyn
This commit is contained in:
Yudi Zheng 2023-06-13 09:02:37 +00:00 committed by Doug Simon
parent 1a9edb8df9
commit 4f23fc1f27
2 changed files with 1 additions and 3 deletions

View File

@ -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.
}

View File

@ -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.
*