Skip to content

Commit cfbfbca

Browse files
Satyen SubramaniamPaul Hohensee
authored andcommitted
8334895: OpenJDK fails to configure on linux aarch64 when CDS is disabled after JDK-8331942
Backport-of: 3b1ca98
1 parent d315f79 commit cfbfbca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

make/autoconf/jdk-options.m4

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,8 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
197197
# three different page sizes: 4K, 64K, and if run on Mac m1 hardware, 16K.
198198
COMPATIBLE_CDS_ALIGNMENT_DEFAULT=false
199199
if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
200-
COMPATIBLE_CDS_ALIGNMENT_DEFAULT=true
200+
COMPATIBLE_CDS_ALIGNMENT_DEFAULT=auto
201201
fi
202-
AC_SUBST(COMPATIBLE_CDS_ALIGNMENT_DEFAULT)
203202
204203
# Compress jars
205204
COMPRESS_JARS=false
@@ -693,7 +692,7 @@ AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
693692
UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: $COMPATIBLE_CDS_ALIGNMENT_DEFAULT,
694693
RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
695694
DESC: [enable use alternative compatible cds core region alignment],
696-
DEFAULT_DESC: [disabled],
695+
DEFAULT_DESC: [disabled except on linux-aarch64],
697696
CHECKING_MSG: [if compatible cds region alignment enabled],
698697
CHECK_AVAILABLE: [
699698
AC_MSG_CHECKING([if CDS archive is available])

0 commit comments

Comments
 (0)