JDK-8255578 : [JVMCI] be more careful about reflective reads of Class.componentType.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,15,16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-10-29
  • Updated: 2020-12-21
  • Resolved: 2020-11-02
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 11 JDK 16
11.0.11-oracleFixed 16 b23Fixed
Description
Class.componentType is statically typed as Class but can actually contain an int[].  When statically folding reads of this field JVMCI needs to always return null for non array klasses.
Comments
Changeset: bc6085b0 Author: Tom Rodriguez <never@openjdk.org> Date: 2020-11-02 19:19:48 +0000 URL: https://github.com/openjdk/jdk/commit/bc6085b0
02-11-2020

ILW = Incorrect folding of reads from Class.componentType, with JVMCI (no reported issues), no known workaround but disable compilation of affected method = HLM = P3
30-10-2020