JDK-8308655 : Narrow types of ConstantPool and ConstMethod returns
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-23
  • Updated: 2023-06-01
  • Resolved: 2023-05-25
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 21
21 b25Fixed
Related Reports
Relates :  
Description
Runtime code in the oops directory stores 'int' values into 'u2' containers for ConstantPool and ConstMethod.  Changing return types to u2 and using u2 as variables, avoids -Wconversion warnings in these source files.  There's some fan out.  To avoid infinite fan out, added some check_cast<u2> casts for types known to be u2 as specified in the JVMS.
Comments
Changeset: 2599ada1 Author: Coleen Phillimore <coleenp@openjdk.org> Date: 2023-05-25 11:52:40 +0000 URL: https://git.openjdk.org/jdk/commit/2599ada152a608fb66fd41d12f383737952b976b
25-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14092 Date: 2023-05-23 01:18:07 +0000
23-05-2023