On Linux aarch64, a JVM may encounter three different page sizes: 4K, 64K, and (when run on Mac M1 hardware) 16K.
Since forgetting to specify `--enable-compatible-cds-alignment` is a common error that is only noticed when running the produced JVM on hardware with different page size, we propose to enable that option by default on Linux aarch64. The cost is a moderate increase in CDS archive size (about 300K). I tested this patch on: - x64 Linux - x64 Linux, crossbuilding to aarch64 - building natively on aarch64 Linux ------------- Commit messages: - aarch64-should-default-to-64k-alignment-for-cds-regions Changes: https://git.openjdk.org/jdk/pull/19142/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19142&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8331942 Stats: 12 lines in 1 file changed: 11 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/19142.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/19142/head:pull/19142 PR: https://git.openjdk.org/jdk/pull/19142