8257020: [JVMCI] enable a JVMCICompiler to specify which GCs it supports

Reviewed-by: stefank, kvn
This commit is contained in:
Doug Simon 2020-12-03 13:42:50 +00:00
parent 129c37700f
commit fa58671f9f
21 changed files with 197 additions and 41 deletions

View file

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