JDK-8331952 : --enable-compatible-cds-alignment should be enabled by default
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2024-05-08
  • Updated: 2024-05-09
  • Resolved: 2024-05-09
Related Reports
Duplicate :  
Relates :  
Description
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.

Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19150 Date: 2024-05-09 01:07:26 +0000
09-05-2024