JDK-8335113 : C2 MergeStores: allow merging of putChar and other larger stores on smaller array elements
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 24
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2024-06-25
  • Updated: 2024-07-01
  • Resolved: 2024-07-01
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
Currently, MergeStores is limited to stores of the same size as the array elements.

But this means putChar of 2-bytes are not permitted to be merged for byte arrays.

Also see:
https://github.com/openjdk/jdk/pull/19626#issuecomment-2189509983
Comments
Allowing larger stores is a sub-set of the improved pointer-parsing.
01-07-2024