Skip to content

Commit

Permalink
Merge pull request #353 from pshipton/cds
Browse files Browse the repository at this point in the history
Always set COMPATIBLE_CDS_ALIGNMENT_DEFAULT to false for OpenJ9
  • Loading branch information
keithc-ca authored May 24, 2024
2 parents 684d126 + d6f8e79 commit 6c29721
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 6c29721

Please sign in to comment.