JDK-8283789 : CompilerPhaseTypeHelper::to_bitmask should operate on uint64_t
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-03-28
  • Updated: 2022-03-28
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 19
19Unresolved
Related Reports
Relates :  
Description
JDK-8281505 added this helper method that operates on uint64_t masks, but it operates on ints. So it is subtly broken on 32-bit platforms, for example. SonarCloud complains about it: "The result of the left shift is undefined due to shifting by '32', which is greater or equal to the width of type 'int'"
Comments
ILW = incorrect result on 32-bit platform; limited to PrintIdealPhase feature?; no workaround = MLH = P4
28-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7994 Date: 2022-03-28 13:02:37 +0000
28-03-2022