mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8331942: On Linux aarch64, CDS archives should be using 64K alignment by default
Reviewed-by: aph, iklam
This commit is contained in:
parent
a706ca4fdb
commit
d2d37c913e
1 changed files with 12 additions and 1 deletions
|
@ -190,6 +190,17 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
|
||||||
fi
|
fi
|
||||||
AC_SUBST(INCLUDE_SA)
|
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.
|
||||||
|
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
|
# Compress jars
|
||||||
COMPRESS_JARS=false
|
COMPRESS_JARS=false
|
||||||
|
|
||||||
|
@ -673,7 +684,7 @@ AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE],
|
||||||
#
|
#
|
||||||
AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
|
AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
|
||||||
[
|
[
|
||||||
UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: false,
|
UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: $COMPATIBLE_CDS_ALIGNMENT_DEFAULT,
|
||||||
RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
|
RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
|
||||||
DESC: [enable use alternative compatible cds core region alignment],
|
DESC: [enable use alternative compatible cds core region alignment],
|
||||||
DEFAULT_DESC: [disabled],
|
DEFAULT_DESC: [disabled],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue