Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8312749 Generational ZGC: Tests crash with assert(index == 0 || is_power_of_2(index))
  3. JDK-8314018

Release Note: JVM May Crash or Malfunction When Using ZGC and Non-Default ObjectAlignmentInBytes

    XMLWordPrintable

Details

    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`.

      Attachments

        Issue Links

          Activity

            People

              rcastanedalo Roberto Castaneda Lozano
              rcastanedalo Roberto Castaneda Lozano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: