JDK-8305056 : Avoid unaligned access in emit_intX methods if it's unsupported
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 20,21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2023-03-28
  • Updated: 2023-08-03
  • Resolved: 2023-04-24
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 21
21 b20Fixed
Related Reports
Relates :  
Description
emit_int16/32/64 use direct memory access in shared code, this may result in unaligned memory stores on platforms where unaligned memory access is disabled by default:
risc-v, arm32
lets use put_native in emit_intXX methods, this will affect next platforms as well:
ppc and x86
we will use properly aligned memory stores in put_native_XX methods only if it is required by global variables.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1638 Date: 2023-08-03 20:17:17 +0000
03-08-2023

Changeset: f239695b Author: Vladimir Kempik <vkempik@openjdk.org> Date: 2023-04-24 11:31:49 +0000 URL: https://git.openjdk.org/jdk/commit/f239695b5670bfbc251430d2f7e632804894a8bc
24-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13227 Date: 2023-03-29 12:40:23 +0000
29-03-2023