On Wed, 8 May 2024 17:01:26 GMT, Andrew Haley <a...@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

Reply via email to