Skip to content

Commit 6cec7cf

Browse files
author
duke
committed
Automatic merge of master into stats-before-this-super
2 parents 97eaccf + e66fd6f commit 6cec7cf

File tree

794 files changed

+9606
-5898
lines changed

Some content is hidden

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

794 files changed

+9606
-5898
lines changed

.github/workflows/submit.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ jobs:
368368
"$HOME/linux-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
369369
.
370370
-i *.jtr
371-
-i hs_err*
372-
-i replay*
371+
-i */hs_err*.log
372+
-i */replay*.log
373373
continue-on-error: true
374374

375375
- name: Persist test results
@@ -655,8 +655,8 @@ jobs:
655655
"$HOME/linux-x86${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
656656
.
657657
-i *.jtr
658-
-i hs_err*
659-
-i replay*
658+
-i */hs_err*.log
659+
-i */replay*.log
660660
continue-on-error: true
661661

662662
- name: Persist test results
@@ -971,8 +971,8 @@ jobs:
971971
"$HOME/windows-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
972972
.
973973
-i *.jtr
974-
-i hs_err*
975-
-i replay*
974+
-i */hs_err*.log
975+
-i */replay*.log
976976
continue-on-error: true
977977

978978
- name: Persist test results
@@ -1253,8 +1253,8 @@ jobs:
12531253
"$HOME/macos-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
12541254
.
12551255
-i *.jtr
1256-
-i hs_err*
1257-
-i replay*
1256+
-i */hs_err*.log
1257+
-i */replay*.log
12581258
continue-on-error: true
12591259

12601260
- name: Persist test results

make/CompileJavaModules.gmk

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,6 @@ ifeq ($(call isTargetOs, windows), true)
184184
java.desktop_EXCLUDES += com/sun/java/swing/plaf/gtk
185185
endif
186186

187-
ifdef BUILD_HEADLESS_ONLY
188-
java.desktop_EXCLUDES += sun/applet
189-
endif
190-
191187
ifeq ($(call isTargetOs, windows macosx), false)
192188
java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java
193189
endif
@@ -389,11 +385,11 @@ endif
389385

390386
################################################################################
391387

392-
jdk.incubator.jpackage_COPY += .gif .png .txt .spec .script .prerm .preinst \
388+
jdk.jpackage_COPY += .gif .png .txt .spec .script .prerm .preinst \
393389
.postrm .postinst .list .sh .desktop .copyright .control .plist .template \
394390
.icns .scpt .wxs .wxl .wxi .ico .bmp .tiff
395391

396-
jdk.incubator.jpackage_CLEAN += .properties
392+
jdk.jpackage_CLEAN += .properties
397393

398394
################################################################################
399395

make/Main.gmk

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ $(eval $(call SetupTarget, test-image-demos-jdk, \
338338

339339
$(eval $(call SetupTarget, generate-summary, \
340340
MAKEFILE := GenerateModuleSummary, \
341-
DEPS := jmods buildtools-modules, \
341+
DEPS := jmods buildtools-modules runnable-buildjdk, \
342342
))
343343

344344
################################################################################
@@ -468,7 +468,7 @@ $(eval $(call SetupTarget, docs-jdk-api-javadoc, \
468468
$(eval $(call SetupTarget, docs-jdk-api-modulegraph, \
469469
MAKEFILE := Docs, \
470470
TARGET := docs-jdk-api-modulegraph, \
471-
DEPS := buildtools-modules, \
471+
DEPS := buildtools-modules runnable-buildjdk, \
472472
))
473473

474474
$(eval $(call SetupTarget, docs-javase-api-javadoc, \
@@ -479,7 +479,7 @@ $(eval $(call SetupTarget, docs-javase-api-javadoc, \
479479
$(eval $(call SetupTarget, docs-javase-api-modulegraph, \
480480
MAKEFILE := Docs, \
481481
TARGET := docs-javase-api-modulegraph, \
482-
DEPS := buildtools-modules, \
482+
DEPS := buildtools-modules runnable-buildjdk, \
483483
))
484484

485485
$(eval $(call SetupTarget, docs-reference-api-javadoc, \
@@ -490,7 +490,7 @@ $(eval $(call SetupTarget, docs-reference-api-javadoc, \
490490
$(eval $(call SetupTarget, docs-reference-api-modulegraph, \
491491
MAKEFILE := Docs, \
492492
TARGET := docs-reference-api-modulegraph, \
493-
DEPS := buildtools-modules, \
493+
DEPS := buildtools-modules runnable-buildjdk, \
494494
))
495495

496496
# The gensrc steps for jdk.jdi create html spec files.
@@ -1083,6 +1083,18 @@ ifneq ($(COMPILE_TYPE), cross)
10831083
exploded-image: exploded-image-optimize
10841084
endif
10851085

1086+
# The runnable-buildjdk target guarantees that the buildjdk is done
1087+
# building and ready to be used. The exact set of dependencies it needs
1088+
# depends on what kind of buildjdk is used for the current configuration.
1089+
runnable-buildjdk:
1090+
ifeq ($(CREATE_BUILDJDK), true)
1091+
ifneq ($(CREATING_BUILDJDK), true)
1092+
runnable-buildjdk: create-buildjdk
1093+
endif
1094+
else ifeq ($(EXTERNAL_BUILDJDK), false)
1095+
runnable-buildjdk: exploded-image
1096+
endif
1097+
10861098
create-buildjdk: create-buildjdk-interim-image
10871099

10881100
docs-jdk-api: docs-jdk-api-javadoc
@@ -1186,7 +1198,7 @@ all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
11861198
ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-gensrc gensrc gendata \
11871199
copy java libs static-libs launchers jmods \
11881200
jdk.jdwp.agent-gensrc $(ALL_MODULES) demos \
1189-
exploded-image-base exploded-image \
1201+
exploded-image-base exploded-image runnable-buildjdk \
11901202
create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
11911203
docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
11921204
docs-image docs-javase-image docs-reference-image all-docs-images \

make/autoconf/flags-cflags.m4

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -663,16 +663,10 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
663663
$1_DEFINES_CPU_JDK="${$1_DEFINES_CPU_JDK} -DARCH='\"$FLAGS_CPU_LEGACY\"' \
664664
-D$FLAGS_CPU_LEGACY"
665665
666-
if test "x$FLAGS_CPU_BITS" = x64; then
667-
# -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
668-
# unpack200.exe.
669-
if test "x$FLAGS_OS" = xlinux || test "x$FLAGS_OS" = xmacosx; then
670-
$1_DEFINES_CPU_JDK="${$1_DEFINES_CPU_JDK} -D_LP64=1"
671-
fi
672-
if test "x$FLAGS_OS" != xaix; then
673-
# xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it.
674-
$1_DEFINES_CPU_JVM="${$1_DEFINES_CPU_JVM} -D_LP64=1"
675-
fi
666+
if test "x$FLAGS_CPU_BITS" = x64 && test "x$FLAGS_OS" != xaix; then
667+
# xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it.
668+
$1_DEFINES_CPU_JDK="${$1_DEFINES_CPU_JDK} -D_LP64=1"
669+
$1_DEFINES_CPU_JVM="${$1_DEFINES_CPU_JVM} -D_LP64=1"
676670
fi
677671
678672
# toolchain dependend, per-cpu

make/autoconf/jvm-features.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ AC_DEFUN_ONCE([JVM_FEATURES_CHECK_GRAAL],
306306
# Graal is only available where JVMCI is available since it requires JVMCI.
307307
if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
308308
AC_MSG_RESULT([yes])
309-
elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = "xlinux-aarch64"; then
309+
elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
310310
AC_MSG_RESULT([yes])
311311
else
312312
AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
@@ -340,7 +340,7 @@ AC_DEFUN_ONCE([JVM_FEATURES_CHECK_JVMCI],
340340
AC_MSG_CHECKING([if platform is supported by JVMCI])
341341
if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
342342
AC_MSG_RESULT([yes])
343-
elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = "xlinux-aarch64"; then
343+
elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
344344
AC_MSG_RESULT([yes])
345345
else
346346
AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])

make/autoconf/libraries.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
4343
if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
4444
# No X11 support on windows or macosx
4545
NEEDS_LIB_X11=false
46+
elif test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
47+
# No X11 support needed when building headless only
48+
NEEDS_LIB_X11=false
4649
else
47-
# All other instances need X11, even if building headless only, libawt still
48-
# needs X11 headers.
50+
# All other instances need X11
4951
NEEDS_LIB_X11=true
5052
fi
5153

make/common/JavaCompilation.gmk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,11 @@ define SetupJavaCompilationBody
311311
ifneq ($$($1_KEEP_DUPS), true)
312312
# Remove duplicate source files by keeping the first found of each duplicate.
313313
# This allows for automatic overrides with custom or platform specific versions
314-
# source files.
314+
# source files. Need to call DoubleDollar as we have java classes with '$' in
315+
# their names.
315316
$1_SRCS := $$(strip $$(foreach s, $$($1_SRCS), \
316-
$$(eval relative_src := $$(call remove-prefixes, $$($1_SRC), $$(s))) \
317+
$$(eval relative_src := $$(call remove-prefixes, $$($1_SRC), \
318+
$$(call DoubleDollar, $$(s)))) \
317319
$$(if $$($1_$$(relative_src)), \
318320
, \
319321
$$(eval $1_$$(relative_src) := 1) $$(s))))

make/common/JdkNativeCompilation.gmk

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ ifeq ($(STATIC_LIBS), true)
7777
FindStaticLib =
7878
endif
7979

80+
# Returns the module specific java header dir if it exists.
81+
# Param 1 - module name
8082
GetJavaHeaderDir = \
81-
$(wildcard $(SUPPORT_OUTPUTDIR)/headers/$(strip $1))
83+
$(if $(strip $1),$(wildcard $(SUPPORT_OUTPUTDIR)/headers/$(strip $1)))
8284

8385
# Process a dir description such as "java.base:headers" into a set of proper absolute paths.
8486
ProcessDir = \
@@ -123,15 +125,27 @@ JDK_RCFLAGS=$(RCFLAGS) \
123125
SetupJdkLibrary = $(NamedParamsMacroTemplate)
124126
define SetupJdkLibraryBody
125127
ifeq ($$($1_OUTPUT_DIR), )
126-
$1_OUTPUT_DIR := $$(call FindLibDirForModule, $$(MODULE))
128+
ifneq ($$(MODULE), )
129+
$1_OUTPUT_DIR := $$(call FindLibDirForModule, $$(MODULE))
130+
else
131+
$$(error Must specify OUTPUT_DIR in a MODULE free context)
132+
endif
127133
endif
128134

129135
ifeq ($$($1_OBJECT_DIR), )
130-
$1_OBJECT_DIR := $$(SUPPORT_OUTPUTDIR)/native/$$(MODULE)/lib$$($1_NAME)
136+
ifneq ($$(MODULE), )
137+
$1_OBJECT_DIR := $$(SUPPORT_OUTPUTDIR)/native/$$(MODULE)/lib$$($1_NAME)
138+
else
139+
$$(error Must specify OBJECT_DIR in a MODULE free context)
140+
endif
131141
endif
132142

133143
ifeq ($$($1_SRC), )
134-
$1_SRC := $$(call FindSrcDirsForLib, $$(MODULE), $$($1_NAME))
144+
ifneq ($$(MODULE), )
145+
$1_SRC := $$(call FindSrcDirsForLib, $$(MODULE), $$($1_NAME))
146+
else
147+
$$(error Must specify SRC in a MODULE free context)
148+
endif
135149
else
136150
$1_SRC := $$(foreach dir, $$($1_SRC), $$(call ProcessDir, $$(dir)))
137151
endif
@@ -165,7 +179,8 @@ define SetupJdkLibraryBody
165179
ifneq ($$($1_HEADERS_FROM_SRC), false)
166180
$1_SRC_HEADER_FLAGS := $$(addprefix -I, $$(wildcard $$($1_SRC)))
167181
endif
168-
# Always add the java header dir
182+
183+
# Add the module specific java header dir
169184
$1_SRC_HEADER_FLAGS += $$(addprefix -I, $$(call GetJavaHeaderDir, $$(MODULE)))
170185

171186
ifneq ($$($1_EXTRA_HEADER_DIRS), )
@@ -203,11 +218,19 @@ define SetupJdkExecutableBody
203218
$1_TYPE := EXECUTABLE
204219

205220
ifeq ($$($1_OUTPUT_DIR), )
206-
$1_OUTPUT_DIR := $$(call FindExecutableDirForModule, $$(MODULE))
221+
ifneq ($$(MODULE), )
222+
$1_OUTPUT_DIR := $$(call FindExecutableDirForModule, $$(MODULE))
223+
else
224+
$$(error Must specify OUTPUT_DIR in a MODULE free context)
225+
endif
207226
endif
208227

209228
ifeq ($$($1_OBJECT_DIR), )
210-
$1_OBJECT_DIR := $$(SUPPORT_OUTPUTDIR)/native/$$(MODULE)/$$($1_NAME)
229+
ifneq ($$(MODULE), )
230+
$1_OBJECT_DIR := $$(SUPPORT_OUTPUTDIR)/native/$$(MODULE)/$$($1_NAME)
231+
else
232+
$$(error Must specify OBJECT_DIR in a MODULE free context)
233+
endif
211234
endif
212235

213236
ifeq ($$($1_VERSIONINFO_RESOURCE), )

make/common/Modules.gmk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ endif
125125

126126
JRE_TOOL_MODULES += \
127127
jdk.jdwp.agent \
128-
jdk.incubator.jpackage \
128+
jdk.jpackage \
129129
#
130130

131131
################################################################################
@@ -145,7 +145,7 @@ DOCS_MODULES += \
145145
jdk.editpad \
146146
jdk.hotspot.agent \
147147
jdk.httpserver \
148-
jdk.incubator.jpackage \
148+
jdk.jpackage \
149149
jdk.incubator.vector \
150150
jdk.jartool \
151151
jdk.javadoc \
@@ -228,7 +228,7 @@ endif
228228
# jpackage is only on windows, macosx, and linux
229229

230230
ifeq ($(call isTargetOs, windows macosx linux), false)
231-
MODULES_FILTER += jdk.incubator.jpackage
231+
MODULES_FILTER += jdk.jpackage
232232
endif
233233

234234
################################################################################

make/conf/jib-profiles.js

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ var getJibProfilesCommon = function (input, data) {
251251
configure_args: concat("--enable-jtreg-failure-handler",
252252
"--with-exclude-translations=de,es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I,zh_TW,zh_HK",
253253
"--disable-manpages",
254+
"--disable-jvm-feature-aot",
255+
"--disable-jvm-feature-graal",
254256
"--disable-jvm-feature-shenandoahgc",
255257
versionArgs(input, common))
256258
};
@@ -404,9 +406,9 @@ var getJibProfilesProfiles = function (input, common, data) {
404406
"linux-x64": {
405407
target_os: "linux",
406408
target_cpu: "x64",
407-
dependencies: ["devkit", "gtest", "graphviz", "pandoc", "graalunit_lib"],
409+
dependencies: ["devkit", "gtest", "graphviz", "pandoc"],
408410
configure_args: concat(common.configure_args_64bit,
409-
"--with-zlib=system",
411+
"--with-zlib=system", "--disable-dtrace",
410412
(isWsl(input) ? [ "--host=x86_64-unknown-linux-gnu",
411413
"--build=x86_64-unknown-linux-gnu" ] : [])),
412414
},
@@ -423,7 +425,7 @@ var getJibProfilesProfiles = function (input, common, data) {
423425
"macosx-x64": {
424426
target_os: "macosx",
425427
target_cpu: "x64",
426-
dependencies: ["devkit", "gtest", "pandoc", "graalunit_lib"],
428+
dependencies: ["devkit", "gtest", "pandoc"],
427429
configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
428430
"--with-macosx-version-max=10.9.0",
429431
// Use system SetFile instead of the one in the devkit as the
@@ -434,7 +436,7 @@ var getJibProfilesProfiles = function (input, common, data) {
434436
"windows-x64": {
435437
target_os: "windows",
436438
target_cpu: "x64",
437-
dependencies: ["devkit", "gtest", "pandoc", "graalunit_lib"],
439+
dependencies: ["devkit", "gtest", "pandoc"],
438440
configure_args: concat(common.configure_args_64bit),
439441
},
440442

@@ -454,8 +456,6 @@ var getJibProfilesProfiles = function (input, common, data) {
454456
configure_args: [
455457
"--openjdk-target=aarch64-linux-gnu",
456458
"--disable-jvm-feature-jvmci",
457-
"--disable-jvm-feature-graal",
458-
"--disable-jvm-feature-aot",
459459
],
460460
},
461461

@@ -687,11 +687,12 @@ var getJibProfilesProfiles = function (input, common, data) {
687687
dependencies: [
688688
"boot_jdk", "devkit", "graphviz", "pandoc", buildJdkDep,
689689
],
690-
configure_args: [
690+
configure_args: concat(
691691
"--enable-full-docs",
692+
versionArgs(input, common),
692693
"--with-build-jdk=" + input.get(buildJdkDep, "home_path")
693694
+ (input.build_os == "macosx" ? "/Contents/Home" : "")
694-
],
695+
),
695696
default_make_targets: ["all-docs-bundles"],
696697
artifacts: {
697698
doc_api_spec: {
@@ -1151,15 +1152,6 @@ var getJibProfilesDependencies = function (input, common) {
11511152
configure_args: "",
11521153
},
11531154

1154-
graalunit_lib: {
1155-
organization: common.organization,
1156-
ext: "zip",
1157-
revision: "619_Apr_12_2018",
1158-
module: "graalunit-lib",
1159-
configure_args: "--with-graalunit-lib=" + input.get("graalunit_lib", "install_path"),
1160-
environment_name: "GRAALUNIT_LIB"
1161-
},
1162-
11631155
gtest: {
11641156
organization: common.organization,
11651157
ext: "tar.gz",

0 commit comments

Comments
 (0)