JDK-8267332 : xor value should handle bounded values
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-05-18
  • Updated: 2022-03-28
  • Resolved: 2021-05-21
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 17
17 b24Fixed
Related Reports
Relates :  
Description
In the discussion of https://github.com/openjdk/jdk/pull/3938 a limitation in C2 is found. C2 fails to eliminate obvious bound checks for indexes that are masked with xor.
Comments
Changeset: 4ba76138 Author: Nils Eliasson <neliasso@openjdk.org> Date: 2021-05-21 14:06:18 +0000 URL: https://git.openjdk.java.net/jdk/commit/4ba761381c60197be08d34580b92b5203fa9b189
21-05-2021