JDK-8314119 : G1: Fix -Wconversion warnings in G1CardSetInlinePtr::card_pos_for
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-08-10
  • Updated: 2023-08-14
  • Resolved: 2023-08-14
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 masterFixed
Related Reports
Relates :  
Description
The input args are of `uint` type while the return value is of `uint8_t`.

Inspecting all its callers, the return value is used in the context of `uintptr_t`. One can change the return type to`uint` to remove this warning here.
Comments
Changeset: 5bfb82e6 Author: Albert Mingkun Yang <ayang@openjdk.org> Date: 2023-08-14 11:08:31 +0000 URL: https://git.openjdk.org/jdk/commit/5bfb82e6fabf977267e043fb7a68b4487051de7d
14-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15228 Date: 2023-08-10 14:59:39 +0000
10-08-2023