JDK-8257020 : [JVMCI] enable a JVMCICompiler to specify which GCs it supports
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-11-24
  • Updated: 2022-01-28
  • Resolved: 2020-12-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b28Fixed
Related Reports
Relates :  
Relates :  
Description
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 upon JDK-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.
Comments
Changeset: fa58671f Author: Doug Simon <dnsimon@openjdk.org> Date: 2020-12-03 13:42:50 +0000 URL: https://git.openjdk.java.net/jdk/commit/fa58671f
03-12-2020