From 32af655a477e1150e09f68a0ad792303ca46c8aa Mon Sep 17 00:00:00 2001 From: Vladimir Petko Date: Thu, 24 Apr 2025 02:05:43 +0200 Subject: [PATCH] set default compatible cds alignment to auto for arm64 Bug: https://bugs.openjdk.org/browse/JDK-8334895 Last-Update: 2024-06-25 ARM64 requires cds alignment option to be enabled if CDS is enabled. Setting it to true will enable the option even if CDS is disabled causing a configuration error. Setting option to auto allows one to enable it only when CDS is enabled. Gbp-Pq: Name jdk-8334895-proposed.patch --- make/autoconf/jdk-options.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/autoconf/jdk-options.m4 b/make/autoconf/jdk-options.m4 index e8d8565ff..4a43ce711 100644 --- a/make/autoconf/jdk-options.m4 +++ b/make/autoconf/jdk-options.m4 @@ -211,7 +211,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS], # three different page sizes: 4K, 64K, and if run on Mac m1 hardware, 16K. COMPATIBLE_CDS_ALIGNMENT_DEFAULT=false if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then - COMPATIBLE_CDS_ALIGNMENT_DEFAULT=true + COMPATIBLE_CDS_ALIGNMENT_DEFAULT=auto fi AC_SUBST(COMPATIBLE_CDS_ALIGNMENT_DEFAULT) -- 2.30.2