Skip to content

Commit cf49a96

Browse files
committed
Merge branch 'master' into jdk-8333446-systemd-slice-tests
2 parents a98fd7d + 0d593cd commit cf49a96

File tree

354 files changed

+8375
-4052
lines changed

Some content is hidden

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

354 files changed

+8375
-4052
lines changed

make/Bundles.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ ifneq ($(filter product-bundles% legacy-bundles, $(MAKECMDGOALS)), )
284284
ifeq ($(MACOSX_CODESIGN_MODE), hardened)
285285
# Macosx release build and code signing available.
286286

287-
################################################################################
287+
############################################################################
288288
# JDK bundle
289289
$(eval $(call SetupCopyFiles, CREATE_JDK_BUNDLE_DIR_SIGNED, \
290290
SRC := $(JDK_IMAGE_DIR), \
@@ -313,7 +313,7 @@ ifneq ($(filter product-bundles% legacy-bundles, $(MAKECMDGOALS)), )
313313

314314
PRODUCT_TARGETS += $(BUILD_JDK_BUNDLE)
315315

316-
################################################################################
316+
############################################################################
317317
# JRE bundle
318318
$(eval $(call SetupCopyFiles, CREATE_JRE_BUNDLE_DIR_SIGNED, \
319319
SRC := $(JRE_IMAGE_DIR), \

make/CompileInterimLangtools.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $(BUILDTOOLS_OUTPUTDIR)/gensrc/java.compiler.interim/javax/tools/ToolProvider.ja
6565
$(SED) $(INTERIM_TOOL_PROVIDER_PATTERN) $< > $@
6666

6767
java.compiler.interim_EXTRA_FILES := \
68-
$(BUILDTOOLS_OUTPUTDIR)/gensrc/java.compiler.interim/javax/tools/ToolProvider.java
68+
$(BUILDTOOLS_OUTPUTDIR)/gensrc/java.compiler.interim/javax/tools/ToolProvider.java
6969

7070
TARGETS += $(BUILDTOOLS_OUTPUTDIR)/gensrc/java.compiler.interim/javax/tools/ToolProvider.java
7171

make/CompileJavaModules.gmk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ $(JDK_OUTPUTDIR)/modules/%_zh_HK.properties: $(JDK_OUTPUTDIR)/modules/%_zh_TW.pr
7575

7676
CreateHkTargets = \
7777
$(call FilterExcludedTranslations, \
78-
$(patsubst $(TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
79-
$(subst /share/classes,, \
80-
$(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1)) \
81-
) \
82-
), \
83-
.properties \
78+
$(patsubst $(TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
79+
$(subst /share/classes,, \
80+
$(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1)) \
81+
) \
82+
), \
83+
.properties \
8484
)
8585

8686
################################################################################

make/CompileToolsJdk.gmk

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ $(eval $(call SetupJavaCompilation, BUILD_TOOLS_JDK, \
5252
build/tools/deps \
5353
build/tools/docs \
5454
build/tools/jigsaw \
55-
build/tools/depend \
56-
, \
55+
build/tools/depend, \
5756
BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes, \
5857
DISABLED_WARNINGS := dangling-doc-comments options, \
5958
JAVAC_FLAGS := \
@@ -66,17 +65,19 @@ $(eval $(call SetupJavaCompilation, BUILD_TOOLS_JDK, \
6665

6766
TARGETS += $(BUILD_TOOLS_JDK)
6867

69-
$(eval $(call SetupCopyFiles,COPY_NIMBUS_TEMPLATES, \
68+
$(eval $(call SetupCopyFiles, COPY_NIMBUS_TEMPLATES, \
7069
SRC := $(TOPDIR)/src/java.desktop/share/classes/javax/swing/plaf/nimbus, \
7170
DEST := $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes/build/tools/generatenimbus/resources, \
72-
FILES := $(wildcard $(TOPDIR)/src/java.desktop/share/classes/javax/swing/plaf/nimbus/*.template)))
71+
FILES := $(wildcard $(TOPDIR)/src/java.desktop/share/classes/javax/swing/plaf/nimbus/*.template), \
72+
))
7373

7474
TARGETS += $(COPY_NIMBUS_TEMPLATES)
7575

76-
$(eval $(call SetupCopyFiles,COPY_CLDRCONVERTER_PROPERTIES, \
76+
$(eval $(call SetupCopyFiles, COPY_CLDRCONVERTER_PROPERTIES, \
7777
SRC := $(TOPDIR)/make/jdk/src/classes/build/tools/cldrconverter, \
7878
DEST := $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes/build/tools/cldrconverter, \
79-
FILES := $(wildcard $(TOPDIR)/make/jdk/src/classes/build/tools/cldrconverter/*.properties)))
79+
FILES := $(wildcard $(TOPDIR)/make/jdk/src/classes/build/tools/cldrconverter/*.properties), \
80+
))
8081

8182
TARGETS += $(COPY_CLDRCONVERTER_PROPERTIES)
8283

make/CopyInterimTZDB.gmk

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ include MakeBase.gmk
3030

3131
include CopyFiles.gmk
3232

33-
##########################################################################################
33+
################################################################################
3434

3535
### TZDB tool needs files from java.time.zone package
3636

@@ -41,12 +41,13 @@ define tzdb_copyfiles
4141
< $(<) > $@
4242
endef
4343

44-
$(eval $(call SetupCopyFiles,COPY_INTERIM_TZDB, \
44+
$(eval $(call SetupCopyFiles, COPY_INTERIM_TZDB, \
4545
SRC := $(TOPDIR)/src/java.base/share/classes/java/time/zone, \
4646
DEST := $(BUILDTOOLS_OUTPUTDIR)/interim_tzdb_classes/build/tools/tzdb, \
4747
FILES := ZoneRules.java ZoneOffsetTransition.java ZoneOffsetTransitionRule.java Ser.java, \
48-
MACRO := tzdb_copyfiles))
48+
MACRO := tzdb_copyfiles, \
49+
))
4950

50-
##########################################################################################
51+
################################################################################
5152

5253
all: $(COPY_INTERIM_TZDB)

make/CreateJmods.gmk

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2024, 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
@@ -229,8 +229,21 @@ ifeq ($(INTERIM_JMOD), true)
229229
# Interim JMODs are not shipped anywhere, so there is no reason
230230
# to compress them at all.
231231
JMOD_FLAGS += --compress zip-0
232+
233+
JMOD_TARGET_OS := $(OPENJDK_BUILD_OS)
234+
ifeq ($(JMOD_TARGET_OS), macosx)
235+
JMOD_TARGET_OS := macos
236+
endif
237+
238+
JMOD_TARGET_CPU := $(OPENJDK_BUILD_CPU)
239+
ifeq ($(JMOD_TARGET_CPU), x86_64)
240+
JMOD_TARGET_CPU := amd64
241+
endif
242+
243+
JMOD_TARGET_PLATFORM := $(JMOD_TARGET_OS)-$(JMOD_TARGET_CPU)
232244
else
233245
JMOD_FLAGS += --compress $(JMOD_COMPRESS)
246+
JMOD_TARGET_PLATFORM := $(OPENJDK_MODULE_TARGET_PLATFORM)
234247
endif
235248

236249
# Create jmods in the support dir and then move them into place to keep the
@@ -242,7 +255,7 @@ $(eval $(call SetupExecute, create_$(JMOD_FILE), \
242255
SUPPORT_DIR := $(JMODS_SUPPORT_DIR), \
243256
PRE_COMMAND := $(RM) $(JMODS_DIR)/$(JMOD_FILE) $(JMODS_SUPPORT_DIR)/$(JMOD_FILE), \
244257
COMMAND := $(JMOD) $(JMOD_SMALL_FLAGS) create --module-version $(VERSION_SHORT) \
245-
--target-platform '$(OPENJDK_MODULE_TARGET_PLATFORM)' \
258+
--target-platform '$(JMOD_TARGET_PLATFORM)' \
246259
--module-path $(JMODS_DIR) $(JMOD_FLAGS) \
247260
--date $(SOURCE_DATE_ISO_8601) \
248261
$(JMODS_SUPPORT_DIR)/$(JMOD_FILE), \

make/Docs.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ define create_overview_file
247247
<!DOCTYPE html> \
248248
<html><head></head><body> \
249249
#
250-
ifneq ($$($1_GROUPS),)
250+
ifneq ($$($1_GROUPS), )
251251
$1_OVERVIEW_TEXT += \
252252
<p>This document is divided into \
253253
$$(subst 2,two,$$(subst 3,three,$$(words $$($1_GROUPS)))) sections:</p> \

make/Global.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
###
2929

3030
# Helper macro to allow $(info) to properly print strings beginning with spaces.
31-
_:=
31+
_ :=
3232

3333
help:
3434
$(info )
@@ -108,7 +108,7 @@ help:
108108
$(info $(_) TEST_OPTS="OPT1=x;..." # Generic control of all test harnesses)
109109
$(info $(_) TEST_VM_OPTS="ARG ..." # Same as setting TEST_OPTS to VM_OPTIONS="ARG ...")
110110
$(info )
111-
$(if $(all_confs), $(info Available configurations in $(build_dir):) $(foreach var,$(all_confs),$(info * $(var))),\
111+
$(if $(all_confs), $(info Available configurations in $(build_dir):) $(foreach var,$(all_confs),$(info * $(var))), \
112112
$(info No configurations were found in $(build_dir).) $(info Run 'bash configure' to create a configuration.))
113113
# We need a dummy rule otherwise make will complain
114114
@true

make/Images.gmk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ CDS_DUMP_FLAGS = -Xmx128M -Xms128M
134134
# Param1 - VM variant (e.g., server, client, zero, ...)
135135
# Param2 - _nocoops, or empty
136136
define CreateCDSArchive
137-
$1_$2_DUMP_EXTRA_ARG := $(if $(filter _nocoops, $2),-XX:-UseCompressedOops,)
138-
$1_$2_DUMP_TYPE := $(if $(filter _nocoops, $2),-NOCOOPS,)
137+
$1_$2_DUMP_EXTRA_ARG := $(if $(filter _nocoops, $2), -XX:-UseCompressedOops, )
138+
$1_$2_DUMP_TYPE := $(if $(filter _nocoops, $2), -NOCOOPS, )
139139

140140
# Only G1 supports dumping the shared heap, so explicitly use G1 if the JVM supports it.
141-
$1_$2_CDS_DUMP_FLAGS := $(CDS_DUMP_FLAGS) $(if $(filter g1gc, $(JVM_FEATURES_$1)),-XX:+UseG1GC)
141+
$1_$2_CDS_DUMP_FLAGS := $(CDS_DUMP_FLAGS) $(if $(filter g1gc, $(JVM_FEATURES_$1)), -XX:+UseG1GC)
142142

143143
ifeq ($(OPENJDK_TARGET_OS), windows)
144144
$1_$2_CDS_ARCHIVE := bin/$1/classes$2.jsa
@@ -235,7 +235,7 @@ endif
235235

236236
ifeq ($(GCOV_ENABLED), true)
237237

238-
$(eval $(call SetupCopyFiles,COPY_GCOV_GCNO, \
238+
$(eval $(call SetupCopyFiles, COPY_GCOV_GCNO, \
239239
SRC := $(OUTPUTDIR), \
240240
DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \
241241
FILES := $(call FindFiles, $(HOTSPOT_OUTPUTDIR) \

make/Init.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ default:
3737
# serially, regardless of -j.
3838
.NOTPARALLEL:
3939

40-
ifeq ($(HAS_SPEC),)
40+
ifeq ($(HAS_SPEC), )
4141
##############################################################################
4242
# This is the default mode. We have not been recursively called with a SPEC.
4343
##############################################################################
@@ -168,7 +168,7 @@ ifeq ($(HAS_SPEC),)
168168
endif
169169

170170
make-info:
171-
ifneq ($(findstring $(LOG_LEVEL),info debug trace),)
171+
ifneq ($(findstring $(LOG_LEVEL), info debug trace), )
172172
$(info Running make as '$(strip $(MAKE) $(MFLAGS) \
173173
$(COMMAND_LINE_VARIABLES) $(MAKECMDGOALS))')
174174
endif

0 commit comments

Comments
 (0)