mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8257020: [JVMCI] enable a JVMCICompiler to specify which GCs it supports
Reviewed-by: stefank, kvn
This commit is contained in:
parent
129c37700f
commit
fa58671f9f
21 changed files with 197 additions and 41 deletions
|
@ -43,6 +43,20 @@ public class Compiler {
|
|||
return WB.isC2OrJVMCIIncludedInVmBuild();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if JVMCI is enabled.
|
||||
*
|
||||
* @return true if JVMCI is enabled
|
||||
*/
|
||||
public static boolean isJVMCIEnabled() {
|
||||
Boolean enableJvmci = WB.getBooleanVMFlag("EnableJVMCI");
|
||||
if (enableJvmci == null || !enableJvmci) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if Graal is used as JIT compiler.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue