JDK-8331942 : On Linux aarch64, CDS archives should be using 64K alignment by default
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-05-08
  • Updated: 2025-03-22
  • Resolved: 2024-05-10
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 17 JDK 21 JDK 22 JDK 23
17.0.12Fixed 21.0.4Fixed 22.0.2Fixed 23 b23Fixed
Related Reports
Causes :  
Duplicate :  
Relates :  
Description
On Linux aarch64, a JVM may encounter with 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, one which is only noticed when running the produced JVM on hardware with different page size, it makes sense to enable that option by default on Linux aarch64.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2471 Date: 2024-05-15 10:25:58 +0000
15-05-2024

[jdk17u-fix-request] Approval Request from Thomas Stuefe This fix modifies the default configure settings for Linux on aarch64 to always build CDS archives that are compatible with all possible page sizes on Linux aarch64. Since these errors are hard to catch during production, it makes sense to spend the additional slight increase in archive size to prevent them.
15-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/561 Date: 2024-05-10 10:27:35 +0000
10-05-2024

[jdk21u-fix-request] Approval Request from Thomas Stuefe This fix modifies the default configure settings for Linux on aarch64 to always build CDS archives that are compatible with all possible page sizes on Linux aarch64. Since these errors are hard to catch during production, it makes sense to spend the additional slight increase in archive size to prevent them.
10-05-2024

[jdk22u-fix-request] Approval Request from Thomas Stuefe This fix modifies the default configure settings for Linux on aarch64 to always build CDS archives that are compatible with all possible page sizes on Linux aarch64. Since these errors are hard to catch during production, it makes sense to spend the additional slight increase in archive size to prevent them.
10-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk22u/pull/193 Date: 2024-05-10 10:27:14 +0000
10-05-2024

Changeset: d2d37c91 Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2024-05-10 04:30:17 +0000 URL: https://git.openjdk.org/jdk/commit/d2d37c913e5b55f7aec2c7a6b5a2328348ded223
10-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19142 Date: 2024-05-08 15:14:16 +0000
08-05-2024