JDK-8314018 : Release Note: JVM May Crash or Malfunction When Using ZGC and Non-Default ObjectAlignmentInBytes
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P3
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2023-08-09
  • Updated: 2023-08-28
  • Resolved: 2023-08-11
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
21Resolved
Related Reports
Duplicate :  
Description
Running the JVM with `-XX:+UseZGC` and non-default value of `-XX:ObjectAlignmentInBytes` may lead to JVM crashes or incorrect execution. The issue is caused by an incorrect JIT compiler optimization of the `java.lang.Object.clone()` method for this configuration. If using ZGC with a non-default value of `ObjectAlignmentInBytes` is desired, JIT compilation of `java.lang.Object.clone()` can be disabled using the command-line options `-XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_clone`.
Comments
RN looks good to me.
09-08-2023