JDK-8314274 : G1: Fix -Wconversion warnings around G1CardSetArray::_data
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-08-15
  • Updated: 2023-08-28
  • Resolved: 2023-08-22
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 22
22 b12Fixed
Related Reports
Relates :  
Description
The destination type is uint16_t while card_id is uint. Yet, the source value range is [0..2^16), so the assignment is safe.
Comments
Changeset: 32bf468c Author: Albert Mingkun Yang <ayang@openjdk.org> Date: 2023-08-22 17:21:44 +0000 URL: https://git.openjdk.org/jdk/commit/32bf468c3b9c39550bca4e9aba31252cf08303ea
22-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15289 Date: 2023-08-15 13:26:14 +0000
15-08-2023