RFR: 8331942: On Linux aarch64, CDS archives should be using 64K alignment by default

Thomas Stuefe stuefe at openjdk.org
Wed May 8 18:12:52 UTC 2024


On Wed, 8 May 2024 17:01:26 GMT, Andrew Haley <aph at openjdk.org> wrote:

> This is obviously correct. Otherwise, the CDS archive will only work if the JDK happens to have been built on a machine with greater or equal page size.
> 
> Does the default `compatible-cds-alignment=false` make any sense anywhere on other platforms, though? We might simply make compatibility the default.

The configure option is also evaluated for MacOS x64 to enforce an alignment of 16K, to be able to run on MacOS aarch64 in Rosetta. Seeing how MacOS x64 is not really important anymore, and losses due to 16K alignment are small, I'd be fine with setting the default to compatible. It would be a simpler patch, certainly.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19142#issuecomment-2101138971


More information about the build-dev mailing list