Skip to content

Commit

Permalink
Setup default CDS alignment. For OpenJ9 it needs to be false.
Browse files Browse the repository at this point in the history
Issue eclipse-openj9/openj9#19488

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
  • Loading branch information
pshipton committed May 24, 2024
1 parent 684d126 commit d6f8e79
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions make/autoconf/jdk-options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#

# ===========================================================================
# (c) Copyright IBM Corp. 2022, 2022 All Rights Reserved
# (c) Copyright IBM Corp. 2022, 2024 All Rights Reserved
# ===========================================================================

###############################################################################
Expand Down Expand Up @@ -208,15 +208,8 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
fi
AC_SUBST(INCLUDE_SA)
# Setup default CDS alignment. On platforms where one build may run on machines with different
# page sizes, the JVM choses a compatible alignment to fit all possible page sizes. This slightly
# increases archive size.
# The only platform having this problem at the moment is Linux on aarch64, which may encounter
# three different page sizes: 4K, 64K, and if run on Mac m1 hardware, 16K.
# Setup default CDS alignment. For OpenJ9 it needs to be false.
COMPATIBLE_CDS_ALIGNMENT_DEFAULT=false
if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
COMPATIBLE_CDS_ALIGNMENT_DEFAULT=true
fi
AC_SUBST(COMPATIBLE_CDS_ALIGNMENT_DEFAULT)
# Compress jars
Expand Down

0 comments on commit d6f8e79

Please sign in to comment.