Skip to content

Commit 3be543e

Browse files
Merge branch 'master' into JDK-8333664
2 parents 3e651f1 + d4d1835 commit 3be543e

File tree

1,576 files changed

+14414
-39937
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,576 files changed

+14414
-39937
lines changed

make/Images.gmk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ ifeq ($(JLINK_PRODUCE_LINKABLE_RUNTIME), true)
9797
JLINK_JDK_EXTRA_OPTS += --generate-linkable-runtime
9898
endif
9999

100+
ifneq ($(JLINK_USER_EXTRA_FLAGS), )
101+
JLINK_JDK_EXTRA_OPTS += $(JLINK_USER_EXTRA_FLAGS)
102+
endif
103+
100104
$(eval $(call SetupExecute, jlink_jdk, \
101105
WARN := Creating jdk image, \
102106
DEPS := $(JDK_JMODS) $(BASE_RELEASE_FILE) \

make/PreInit.gmk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ ifneq ($(SKIP_SPEC), true)
7575

7676
# Basic checks on environment and command line.
7777
$(eval $(call CheckControlVariables))
78-
$(eval $(call CheckDeprecatedEnvironment))
7978
$(eval $(call CheckInvalidMakeFlags))
8079

8180
# Check that CONF_CHECK is valid.

make/PreInitSupport.gmk

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,6 @@ define CheckControlVariables
9494
endif
9595
endef
9696

97-
# Check for deprecated ALT_ variables
98-
define CheckDeprecatedEnvironment
99-
defined_alt_variables := $$(filter ALT_%, $$(.VARIABLES))
100-
ifneq ($$(defined_alt_variables), )
101-
$$(info Warning: You have the following ALT_ variables set:)
102-
$$(foreach var, $$(defined_alt_variables), $$(info * $$(var)=$$($$(var))))
103-
$$(info ALT_ variables are deprecated, and may result in a failed build.)
104-
$$(info Please clean your environment.)
105-
$$(info )
106-
endif
107-
endef
108-
10997
# Check for invalid make flags like -j
11098
define CheckInvalidMakeFlags
11199
# This is a trick to get this rule to execute before any other rules

make/RunTestsPrebuilt.gmk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -140,7 +140,6 @@ $(eval $(call SetupVariable,JIB_JAR,OPTIONAL))
140140
include $(TOPDIR)/make/PreInitSupport.gmk
141141
include $(TOPDIR)/make/common/LogUtils.gmk
142142

143-
$(eval $(call CheckDeprecatedEnvironment))
144143
$(eval $(call CheckInvalidMakeFlags))
145144
$(eval $(call ParseLogLevel))
146145

make/autoconf/basic.m4

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
7575
AC_MSG_NOTICE([Rewriting ORIGINAL_PATH to $REWRITTEN_PATH])
7676
fi
7777
78+
if test "x$OPENJDK_TARGET_CPU" = xx86 && test "x$with_jvm_variants" != xzero; then
79+
AC_MSG_ERROR([32-bit x86 builds are not supported])
80+
fi
81+
7882
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
79-
if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then
80-
AC_MSG_ERROR([32-bit Windows builds are not supported])
81-
fi
8283
BASIC_SETUP_PATHS_WINDOWS
8384
fi
8485
@@ -549,9 +550,6 @@ AC_DEFUN_ONCE([BASIC_TEST_USABILITY_ISSUES],
549550
550551
BASIC_CHECK_SRC_PERMS
551552
552-
# Check if the user has any old-style ALT_ variables set.
553-
FOUND_ALT_VARIABLES=`env | grep ^ALT_`
554-
555553
# Before generating output files, test if they exist. If they do, this is a reconfigure.
556554
# Since we can't properly handle the dependencies for this, warn the user about the situation
557555
if test -e $OUTPUTDIR/spec.gmk; then

make/autoconf/configure.ac

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -174,9 +174,6 @@ SRCDIRS_SETUP_IMPORT_MODULES
174174
#
175175
################################################################################
176176

177-
# See if we are doing a complete static build or not
178-
JDKOPT_SETUP_STATIC_BUILD
179-
180177
# First determine the toolchain type (compiler family)
181178
TOOLCHAIN_DETERMINE_TOOLCHAIN_TYPE
182179

@@ -259,11 +256,11 @@ LIB_TESTS_ENABLE_DISABLE_JTREG_TEST_THREAD_FACTORY
259256

260257
JDKOPT_ENABLE_DISABLE_GENERATE_CLASSLIST
261258
JDKOPT_EXCLUDE_TRANSLATIONS
262-
JDKOPT_ENABLE_DISABLE_MANPAGES
263259
JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE
264260
JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH
265261
JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT
266262
JDKOPT_SETUP_MACOSX_SIGNING
263+
JDKOPT_SETUP_SIGNING_HOOK
267264

268265
################################################################################
269266
#

make/autoconf/help.m4

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -341,14 +341,6 @@ AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
341341
printf "\n"
342342
fi
343343
344-
if test "x$FOUND_ALT_VARIABLES" != "x"; then
345-
printf "WARNING: You have old-style ALT_ environment variables set.\n"
346-
printf "These are not respected, and will be ignored. It is recommended\n"
347-
printf "that you clean your environment. The following variables are set:\n"
348-
printf "$FOUND_ALT_VARIABLES\n"
349-
printf "\n"
350-
fi
351-
352344
if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then
353345
printf "WARNING: Your build output directory is not on a local disk.\n"
354346
printf "This will severely degrade build performance!\n"

make/autoconf/jdk-options.m4

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -554,16 +554,6 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
554554
AC_SUBST(UBSAN_ENABLED)
555555
])
556556

557-
################################################################################
558-
#
559-
# Static build support. When enabled will generate static
560-
# libraries instead of shared libraries for all JDK libs.
561-
#
562-
AC_DEFUN_ONCE([JDKOPT_SETUP_STATIC_BUILD],
563-
[
564-
UTIL_DEPRECATED_ARG_ENABLE(static-build)
565-
])
566-
567557
################################################################################
568558
#
569559
# jmod options.
@@ -630,6 +620,18 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JLINK_OPTIONS],
630620
DEFAULT_DESC: [enabled by default unless --enable-linkable-runtime is set],
631621
CHECKING_MSG: [if packaged modules are kept])
632622
AC_SUBST(JLINK_KEEP_PACKAGED_MODULES)
623+
624+
################################################################################
625+
#
626+
# Extra jlink options to be (optionally) passed to the JDK build
627+
#
628+
UTIL_ARG_WITH(NAME: extra-jlink-flags, TYPE: string,
629+
DEFAULT: [],
630+
DESC: [extra flags to be passed to jlink during the build],
631+
OPTIONAL: true)
632+
633+
JLINK_USER_EXTRA_FLAGS="$EXTRA_JLINK_FLAGS"
634+
AC_SUBST(JLINK_USER_EXTRA_FLAGS)
633635
])
634636

635637
################################################################################
@@ -671,15 +673,6 @@ AC_DEFUN([JDKOPT_EXCLUDE_TRANSLATIONS],
671673
AC_SUBST(EXCLUDE_TRANSLATIONS)
672674
])
673675

674-
################################################################################
675-
#
676-
# Optionally disable man pages (deprecated)
677-
#
678-
AC_DEFUN([JDKOPT_ENABLE_DISABLE_MANPAGES],
679-
[
680-
UTIL_DEPRECATED_ARG_ENABLE(manpages)
681-
])
682-
683676
################################################################################
684677
#
685678
# Disable the default CDS archive generation
@@ -866,8 +859,6 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_REPRODUCIBLE_BUILD],
866859
AC_SUBST(SOURCE_DATE)
867860
AC_SUBST(ISO_8601_FORMAT_STRING)
868861
AC_SUBST(SOURCE_DATE_ISO_8601)
869-
870-
UTIL_DEPRECATED_ARG_ENABLE(reproducible-build)
871862
])
872863

873864
################################################################################
@@ -974,6 +965,29 @@ AC_DEFUN([JDKOPT_SETUP_MACOSX_SIGNING],
974965
AC_SUBST(MACOSX_CODESIGN_MODE)
975966
])
976967

968+
################################################################################
969+
#
970+
# Setup a hook to invoke a script that runs for file produced by the native
971+
# compilation steps, after linking.
972+
# Parameter is the path to the script to be called.
973+
#
974+
AC_DEFUN([JDKOPT_SETUP_SIGNING_HOOK],
975+
[
976+
UTIL_ARG_WITH(NAME: signing-hook, TYPE: executable,
977+
OPTIONAL: true, DEFAULT: "",
978+
DESC: [specify path to script used to code sign native binaries]
979+
)
980+
981+
AC_MSG_CHECKING([for signing hook])
982+
if test "x$SIGNING_HOOK" != x; then
983+
UTIL_FIXUP_EXECUTABLE(SIGNING_HOOK)
984+
AC_MSG_RESULT([$SIGNING_HOOK])
985+
else
986+
AC_MSG_RESULT([none])
987+
fi
988+
AC_SUBST(SIGNING_HOOK)
989+
])
990+
977991
################################################################################
978992
#
979993
# fallback linker

make/autoconf/jvm-features.m4

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -50,9 +50,8 @@ m4_define(jvm_features_valid, m4_normalize( \
5050
))
5151

5252
# Deprecated JVM features (these are ignored, but with a warning)
53-
m4_define(jvm_features_deprecated, m4_normalize(
54-
cmsgc trace \
55-
))
53+
# This list is empty at the moment.
54+
m4_define(jvm_features_deprecated, m4_normalize( ))
5655

5756
# Feature descriptions
5857
m4_define(jvm_feature_desc_cds, [enable class data sharing (CDS)])

make/autoconf/platform.m4

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -666,17 +666,7 @@ AC_DEFUN([PLATFORM_CHECK_DEPRECATION],
666666
[
667667
AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
668668
[Suppress the error when configuring for a deprecated port @<:@no@:>@])])
669-
# Unfortunately, variants have not been parsed yet, so we have to check the configure option
670-
# directly. Allow only the directly specified Zero variant, treat any other mix as containing
671-
# something non-Zero.
672-
if test "x$OPENJDK_TARGET_CPU" = xx86 && test "x$with_jvm_variants" != xzero; then
673-
if test "x$enable_deprecated_ports" = "xyes"; then
674-
AC_MSG_WARN([The 32-bit x86 port is deprecated and may be removed in a future release.])
675-
else
676-
AC_MSG_ERROR(m4_normalize([The 32-bit x86 port is deprecated and may be removed in a future release.
677-
Use --enable-deprecated-ports=yes to suppress this error.]))
678-
fi
679-
fi
669+
# There are no deprecated ports. Implement the deprecation warnings here.
680670
])
681671

682672
AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],

0 commit comments

Comments
 (0)