Skip to content

Commit f7bb5a1

Browse files
[GR-68735] Merge in tag jdk-26+11
PullRequest: labsjdk-ce/199
2 parents 4b0196e + 60b4f58 commit f7bb5a1

File tree

384 files changed

+6320
-5179
lines changed

Some content is hidden

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

384 files changed

+6320
-5179
lines changed

make/CompileJavaModules.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ CreateHkTargets = \
8585
################################################################################
8686
# Include module specific build settings
8787

88-
THIS_SNIPPET := modules/$(MODULE)/Java.gmk
88+
THIS_SNIPPET := $(call GetModuleSnippetName, Java)
8989

9090
ifneq ($(wildcard $(THIS_SNIPPET)), )
9191
include MakeSnippetStart.gmk
@@ -115,6 +115,7 @@ $(eval $(call SetupJavaCompilation, $(MODULE), \
115115
EXCLUDE_FILES := $(EXCLUDE_FILES), \
116116
EXCLUDE_PATTERNS := -files, \
117117
KEEP_ALL_TRANSLATIONS := $(KEEP_ALL_TRANSLATIONS), \
118+
TARGET_RELEASE := $(TARGET_RELEASE), \
118119
JAVAC_FLAGS := \
119120
$(DOCLINT) \
120121
$(JAVAC_FLAGS) \

make/CreateJmods.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ endif
184184
################################################################################
185185
# Include module specific build settings
186186

187-
THIS_SNIPPET := modules/$(MODULE)/Jmod.gmk
187+
THIS_SNIPPET := $(call GetModuleSnippetName, Jmod)
188188

189189
ifneq ($(wildcard $(THIS_SNIPPET)), )
190190
include MakeSnippetStart.gmk

make/Images.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ endif
270270
# Since debug symbols are not included in the jmod files, they need to be copied
271271
# in manually after generating the images.
272272

273+
# These variables are read by SetupCopyDebuginfo
273274
ALL_JDK_MODULES := $(JDK_MODULES)
274275
ALL_JRE_MODULES := $(sort $(JRE_MODULES), $(foreach m, $(JRE_MODULES), \
275276
$(call FindTransitiveDepsForModule, $m)))

make/Main.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ CLEAN_SUPPORT_DIRS += demos
14071407
CLEAN_SUPPORT_DIR_TARGETS := $(addprefix clean-, $(CLEAN_SUPPORT_DIRS))
14081408
CLEAN_TESTS += hotspot-jtreg-native jdk-jtreg-native lib
14091409
CLEAN_TEST_TARGETS += $(addprefix clean-test-, $(CLEAN_TESTS))
1410-
CLEAN_PHASES := gensrc java native include
1410+
CLEAN_PHASES += gensrc java native include
14111411
CLEAN_PHASE_TARGETS := $(addprefix clean-, $(CLEAN_PHASES))
14121412
CLEAN_MODULE_TARGETS := $(addprefix clean-, $(ALL_MODULES))
14131413
# Construct targets of the form clean-$module-$phase

make/MainSupport.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ endef
149149

150150
################################################################################
151151

152-
PHASE_MAKEDIRS := $(TOPDIR)/make
152+
PHASE_MAKEDIRS += $(TOPDIR)/make
153153

154154
# Helper macro for DeclareRecipesForPhase
155155
# Declare a recipe for calling the module and phase specific makefile.

make/ModuleWrapper.gmk

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,23 @@ include MakeFileStart.gmk
3434
################################################################################
3535

3636
include CopyFiles.gmk
37+
include Modules.gmk
3738

3839
MODULE_SRC := $(TOPDIR)/src/$(MODULE)
3940

40-
# Define the snippet for MakeSnippetStart/End
41-
THIS_SNIPPET := modules/$(MODULE)/$(MAKEFILE_PREFIX).gmk
41+
################################################################################
42+
# Include module specific build settings
43+
44+
THIS_SNIPPET := $(call GetModuleSnippetName, $(MAKEFILE_PREFIX))
4245

43-
include MakeSnippetStart.gmk
46+
ifneq ($(wildcard $(THIS_SNIPPET)), )
47+
include MakeSnippetStart.gmk
4448

45-
# Include the file being wrapped.
46-
include $(THIS_SNIPPET)
49+
# Include the file being wrapped.
50+
include $(THIS_SNIPPET)
4751

48-
include MakeSnippetEnd.gmk
52+
include MakeSnippetEnd.gmk
53+
endif
4954

5055
ifeq ($(MAKEFILE_PREFIX), Lib)
5156
# We need to keep track of what libraries are generated/needed by this

make/ToolsLangtools.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $(eval $(call SetupJavaCompilation, BUILD_TOOLS_LANGTOOLS, \
3636
COMPILER := bootjdk, \
3737
TARGET_RELEASE := $(TARGET_RELEASE_BOOTJDK), \
3838
SRC := $(TOPDIR)/make/langtools/tools, \
39-
INCLUDES := compileproperties propertiesparser, \
39+
INCLUDES := compileproperties flagsgenerator propertiesparser, \
4040
COPY := .properties, \
4141
BIN := $(BUILDTOOLS_OUTPUTDIR)/langtools_tools_classes, \
4242
))

make/autoconf/boot-jdk.m4

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,9 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK],
395395
396396
# When compiling code to be executed by the Boot JDK, force compatibility with the
397397
# oldest supported bootjdk.
398-
OLDEST_BOOT_JDK=`$ECHO $DEFAULT_ACCEPTABLE_BOOT_VERSIONS \
398+
OLDEST_BOOT_JDK_VERSION=`$ECHO $DEFAULT_ACCEPTABLE_BOOT_VERSIONS \
399399
| $TR " " "\n" | $SORT -n | $HEAD -n1`
400-
# -Xlint:-options is added to avoid "warning: [options] system modules path not set in conjunction with -source"
401-
BOOT_JDK_SOURCETARGET="-source $OLDEST_BOOT_JDK -target $OLDEST_BOOT_JDK -Xlint:-options"
402-
AC_SUBST(BOOT_JDK_SOURCETARGET)
400+
AC_SUBST(OLDEST_BOOT_JDK_VERSION)
403401
404402
# Check if the boot jdk is 32 or 64 bit
405403
if $JAVA -version 2>&1 | $GREP -q "64-Bit"; then

make/autoconf/jvm-features.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,10 @@ AC_DEFUN([JVM_FEATURES_VERIFY],
513513
[
514514
variant=$1
515515
516+
if JVM_FEATURES_IS_ACTIVE(jfr) && ! JVM_FEATURES_IS_ACTIVE(services); then
517+
AC_MSG_ERROR([Specified JVM feature 'jfr' requires feature 'services' for variant '$variant'])
518+
fi
519+
516520
if JVM_FEATURES_IS_ACTIVE(jvmci) && ! (JVM_FEATURES_IS_ACTIVE(compiler1) || \
517521
JVM_FEATURES_IS_ACTIVE(compiler2)); then
518522
AC_MSG_ERROR([Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1' for variant '$variant'])

make/autoconf/spec.gmk.template

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,8 @@ EXTERNAL_BUILDJDK := @EXTERNAL_BUILDJDK@
393393
# Whether the boot jdk jar supports --date=TIMESTAMP
394394
BOOT_JDK_JAR_SUPPORTS_DATE := @BOOT_JDK_JAR_SUPPORTS_DATE@
395395

396-
# When compiling Java source to be run by the boot jdk
397-
# use these extra flags, eg -source 6 -target 6
398-
BOOT_JDK_SOURCETARGET := @BOOT_JDK_SOURCETARGET@
396+
# The oldest supported boot jdk version
397+
OLDEST_BOOT_JDK_VERSION := @OLDEST_BOOT_JDK_VERSION@
399398

400399
# Information about the build system
401400
NUM_CORES := @NUM_CORES@

0 commit comments

Comments
 (0)