A number of jtreg tests require a specific GC. These tests should be ignored when EnableJVMCI is true and the JVMCI compiler does not support the required GC.
This requires adding JVMCICompiler.isGCSupported and making use of it in WhiteBox.isGCSupported.
Without this enhancement, tests requiring GCs not yet supported by GraalVM fail as follows:
Error occurred during initialization of VM
JVMCI Compiler does not support selected GC: epsilon gc
This RFE improves uponJDK-8231503. The problem with that change is that the VM execution used to ascertain whether JVMCI is supported only looks at the *selected* GC as opposed to the *supported* GCs.
This requires adding JVMCICompiler.isGCSupported and making use of it in WhiteBox.isGCSupported.
Without this enhancement, tests requiring GCs not yet supported by GraalVM fail as follows:
Error occurred during initialization of VM
JVMCI Compiler does not support selected GC: epsilon gc
This RFE improves upon
- relates to
-
JDK-8231503 [TESTBUG] compiler/{jvmci,aot} tests should not run with GCs that do not support JVMCI/AOT
-
- Resolved
-
-
JDK-8184349 There should be some verification that EnableJVMCI is disabled if a GC not supporting JVMCI is selected
-
- Resolved
-
-
JDK-8308041 [JVMCI] WB_IsGCSupportedByJVMCICompiler must enter correct JVMCI env
-
- Resolved
-