Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8331952

--enable-compatible-cds-alignment should be enabled by default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot

      JDK-8236847 introduced --enable-compatible-cds-alignment so that the CDS archive can be portable between different machines that have the same the same CPU architecture but different sizes for os::vm_allocation_granularity().

      However, --enable-compatible-cds-alignment is disabled by default. People who create a JDK may not be aware of this option. As a result, CDS may become unintentionally disabled.

      Since the overhead of --enable-compatible-cds-alignment is small (CDS archive file size increases for ~64KB for linux/aarch64, 16KB for macos/x64, zero elsewhere), it should be enabled by default.

            Unassigned Unassigned
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: