Skip to content

Commit 1d15616

Browse files
committed
Merge branch 'master' into fibers-merge-16+23
2 parents 3c47b03 + a0ade22 commit 1d15616

File tree

2,016 files changed

+365342
-28493
lines changed

Some content is hidden

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

2,016 files changed

+365342
-28493
lines changed

.github/workflows/submit.yml

Lines changed: 385 additions & 10 deletions
Large diffs are not rendered by default.

.hgignore

Lines changed: 0 additions & 18 deletions
This file was deleted.

make/Bundles.gmk

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -410,17 +410,43 @@ endif
410410

411411
################################################################################
412412

413-
ifneq ($(filter docs-bundles, $(MAKECMDGOALS)), )
414-
DOCS_BUNDLE_FILES := $(call FindFiles, $(DOCS_IMAGE_DIR))
413+
ifneq ($(filter docs-jdk-bundles, $(MAKECMDGOALS)), )
414+
DOCS_JDK_BUNDLE_FILES := $(call FindFiles, $(DOCS_JDK_IMAGE_DIR))
415415

416-
$(eval $(call SetupBundleFile, BUILD_DOCS_BUNDLE, \
417-
BUNDLE_NAME := $(DOCS_BUNDLE_NAME), \
418-
FILES := $(DOCS_BUNDLE_FILES), \
419-
BASE_DIRS := $(DOCS_IMAGE_DIR), \
416+
$(eval $(call SetupBundleFile, BUILD_DOCS_JDK_BUNDLE, \
417+
BUNDLE_NAME := $(DOCS_JDK_BUNDLE_NAME), \
418+
FILES := $(DOCS_JDK_BUNDLE_FILES), \
419+
BASE_DIRS := $(DOCS_JDK_IMAGE_DIR), \
420420
SUBDIR := docs, \
421421
))
422422

423-
DOCS_TARGETS += $(BUILD_DOCS_BUNDLE)
423+
DOCS_JDK_TARGETS += $(BUILD_DOCS_JDK_BUNDLE)
424+
endif
425+
426+
ifneq ($(filter docs-javase-bundles, $(MAKECMDGOALS)), )
427+
DOCS_JAVASE_BUNDLE_FILES := $(call FindFiles, $(DOCS_JAVASE_IMAGE_DIR))
428+
429+
$(eval $(call SetupBundleFile, BUILD_DOCS_JAVASE_BUNDLE, \
430+
BUNDLE_NAME := $(DOCS_JAVASE_BUNDLE_NAME), \
431+
FILES := $(DOCS_JAVASE_BUNDLE_FILES), \
432+
BASE_DIRS := $(DOCS_JAVASE_IMAGE_DIR), \
433+
SUBDIR := docs-javase, \
434+
))
435+
436+
DOCS_JAVASE_TARGETS += $(BUILD_DOCS_JAVASE_BUNDLE)
437+
endif
438+
439+
ifneq ($(filter docs-reference-bundles, $(MAKECMDGOALS)), )
440+
DOCS_REFERENCE_BUNDLE_FILES := $(call FindFiles, $(DOCS_REFERENCE_IMAGE_DIR))
441+
442+
$(eval $(call SetupBundleFile, BUILD_DOCS_REFERENCE_BUNDLE, \
443+
BUNDLE_NAME := $(DOCS_REFERENCE_BUNDLE_NAME), \
444+
FILES := $(DOCS_REFERENCE_BUNDLE_FILES), \
445+
BASE_DIRS := $(DOCS_REFERENCE_IMAGE_DIR), \
446+
SUBDIR := docs-reference, \
447+
))
448+
449+
DOCS_REFERENCE_TARGETS += $(BUILD_DOCS_REFERENCE_BUNDLE)
424450
endif
425451

426452
################################################################################
@@ -469,9 +495,12 @@ $(eval $(call IncludeCustomExtension, Bundles.gmk))
469495
product-bundles: $(PRODUCT_TARGETS)
470496
legacy-bundles: $(LEGACY_TARGETS)
471497
test-bundles: $(TEST_TARGETS)
472-
docs-bundles: $(DOCS_TARGETS)
498+
docs-jdk-bundles: $(DOCS_JDK_TARGETS)
499+
docs-javase-bundles: $(DOCS_JAVASE_TARGETS)
500+
docs-reference-bundles: $(DOCS_REFERENCE_TARGETS)
473501
static-libs-bundles: $(STATIC_LIBS_TARGETS)
474502
jcov-bundles: $(JCOV_TARGETS)
475503

476-
.PHONY: all default product-bundles test-bundles docs-bundles \
504+
.PHONY: all default product-bundles test-bundles \
505+
docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
477506
static-libs-bundles jcov-bundles

make/CompileJavaModules.gmk

Lines changed: 6 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

@@ -546,6 +542,10 @@ jdk.jfr_DISABLED_WARNINGS += exports
546542
jdk.jfr_COPY := .xsd .xml .dtd
547543
jdk.jfr_JAVAC_FLAGS := -XDstringConcat=inline
548544

545+
################################################################################
546+
547+
jdk.incubator.vector_DOCLINT += -Xdoclint:all/protected
548+
549549
################################################################################
550550
# If this is an imported module that has prebuilt classes, only compile
551551
# module-info.java.

make/CompileModuleTools.gmk

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,20 @@ include JavaCompilation.gmk
3333

3434
TOOLS_CLASSES_DIR := $(BUILDTOOLS_OUTPUTDIR)/tools_jigsaw_classes
3535

36+
# When using an external BUILDJDK, make it possible to shortcut building of
37+
# these tools using the BUILD_JAVAC instead of having to build the complete
38+
# exploded image first.
39+
ifeq ($(EXTERNAL_BUILDJDK), true)
40+
COMPILER := buildjdk
41+
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK)
42+
else
43+
COMPILER := interim
44+
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED)
45+
endif
46+
3647
$(eval $(call SetupJavaCompilation, BUILD_JIGSAW_TOOLS, \
37-
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
48+
TARGET_RELEASE := $(TARGET_RELEASE), \
49+
COMPILER := $(COMPILER), \
3850
SRC := $(TOPDIR)/make/jdk/src/classes, \
3951
INCLUDES := build/tools/deps \
4052
build/tools/docs \

make/CompileToolsJdk.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ $(eval $(call SetupJavaCompilation, BUILD_TOOLS_JDK, \
5656
DISABLED_WARNINGS := options, \
5757
JAVAC_FLAGS := \
5858
--add-exports java.desktop/sun.awt=ALL-UNNAMED \
59-
--add-exports java.base/sun.text=ALL-UNNAMED, \
59+
--add-exports java.base/sun.text=ALL-UNNAMED \
60+
--add-exports java.base/sun.security.util=ALL-UNNAMED, \
6061
))
6162

6263
TARGETS += $(BUILD_TOOLS_JDK)

make/Docs.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ $(eval $(call SetupApiDocsGeneration, JAVASE_API, \
458458
MODULES := $(JAVASE_MODULES), \
459459
SHORT_NAME := $(JAVASE_SHORT_NAME), \
460460
LONG_NAME := $(JAVASE_LONG_NAME), \
461-
TARGET_DIR := $(IMAGES_OUTPUTDIR)/javase-docs/api, \
461+
TARGET_DIR := $(DOCS_JAVASE_IMAGE_DIR)/api, \
462462
))
463463

464464
# Targets generated are returned in JAVASE_API_JAVADOC_TARGETS and
@@ -476,7 +476,7 @@ $(eval $(call SetupApiDocsGeneration, REFERENCE_API, \
476476
MODULES := $(JAVASE_MODULES), \
477477
SHORT_NAME := $(JAVASE_SHORT_NAME), \
478478
LONG_NAME := $(JAVASE_LONG_NAME), \
479-
TARGET_DIR := $(IMAGES_OUTPUTDIR)/reference-docs/api, \
479+
TARGET_DIR := $(DOCS_REFERENCE_IMAGE_DIR)/api, \
480480
JAVADOC_CMD := $(JAVADOC), \
481481
OPTIONS := $(REFERENCE_OPTIONS), \
482482
TAGS := $(REFERENCE_TAGS), \

make/Main.gmk

Lines changed: 49 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ $(eval $(call SetupTarget, buildtools-jdk, \
9090

9191
$(eval $(call SetupTarget, buildtools-modules, \
9292
MAKEFILE := CompileModuleTools, \
93-
DEPS := exploded-image-base, \
9493
))
9594

9695
$(eval $(call SetupTarget, buildtools-hotspot, \
@@ -339,7 +338,7 @@ $(eval $(call SetupTarget, test-image-demos-jdk, \
339338

340339
$(eval $(call SetupTarget, generate-summary, \
341340
MAKEFILE := GenerateModuleSummary, \
342-
DEPS := jmods buildtools-modules, \
341+
DEPS := jmods buildtools-modules runnable-buildjdk, \
343342
))
344343

345344
################################################################################
@@ -469,7 +468,7 @@ $(eval $(call SetupTarget, docs-jdk-api-javadoc, \
469468
$(eval $(call SetupTarget, docs-jdk-api-modulegraph, \
470469
MAKEFILE := Docs, \
471470
TARGET := docs-jdk-api-modulegraph, \
472-
DEPS := exploded-image buildtools-modules, \
471+
DEPS := buildtools-modules runnable-buildjdk, \
473472
))
474473

475474
$(eval $(call SetupTarget, docs-javase-api-javadoc, \
@@ -480,7 +479,7 @@ $(eval $(call SetupTarget, docs-javase-api-javadoc, \
480479
$(eval $(call SetupTarget, docs-javase-api-modulegraph, \
481480
MAKEFILE := Docs, \
482481
TARGET := docs-javase-api-modulegraph, \
483-
DEPS := exploded-image buildtools-modules, \
482+
DEPS := buildtools-modules runnable-buildjdk, \
484483
))
485484

486485
$(eval $(call SetupTarget, docs-reference-api-javadoc, \
@@ -491,7 +490,7 @@ $(eval $(call SetupTarget, docs-reference-api-javadoc, \
491490
$(eval $(call SetupTarget, docs-reference-api-modulegraph, \
492491
MAKEFILE := Docs, \
493492
TARGET := docs-reference-api-modulegraph, \
494-
DEPS := exploded-image buildtools-modules, \
493+
DEPS := buildtools-modules runnable-buildjdk, \
495494
))
496495

497496
# The gensrc steps for jdk.jdi create html spec files.
@@ -749,12 +748,24 @@ $(eval $(call SetupTarget, test-bundles, \
749748
DEPS := test-image, \
750749
))
751750

752-
$(eval $(call SetupTarget, docs-bundles, \
751+
$(eval $(call SetupTarget, docs-jdk-bundles, \
753752
MAKEFILE := Bundles, \
754-
TARGET := docs-bundles, \
753+
TARGET := docs-jdk-bundles, \
755754
DEPS := docs-image, \
756755
))
757756

757+
$(eval $(call SetupTarget, docs-javase-bundles, \
758+
MAKEFILE := Bundles, \
759+
TARGET := docs-javase-bundles, \
760+
DEPS := docs-javase-image, \
761+
))
762+
763+
$(eval $(call SetupTarget, docs-reference-bundles, \
764+
MAKEFILE := Bundles, \
765+
TARGET := docs-reference-bundles, \
766+
DEPS := docs-reference-image, \
767+
))
768+
758769
$(eval $(call SetupTarget, static-libs-bundles, \
759770
MAKEFILE := Bundles, \
760771
TARGET := static-libs-bundles, \
@@ -945,10 +956,13 @@ else
945956
$(JMOD_TARGETS) $(INTERIM_JMOD_TARGETS): java.base-libs java.base-copy \
946957
java.base-gendata jdk.jlink-launchers java
947958
endif
948-
else
949-
# The normal non cross compilation case uses needs to wait for the full
959+
else ifeq ($(EXTERNAL_BUILDJDK), false)
960+
# The normal non cross compilation usecase needs to wait for the full
950961
# exploded-image to avoid a race with the optimize target.
951962
$(JMOD_TARGETS) $(INTERIM_JMOD_TARGETS): exploded-image
963+
# The buildtools-modules are used for the exploded-image-optimize target,
964+
# but can be built either using the exploded-image or an external BUILDJDK.
965+
buildtools-modules: exploded-image-base
952966
endif
953967

954968
# All modules include the main license files from java.base.
@@ -1069,6 +1083,18 @@ ifneq ($(COMPILE_TYPE), cross)
10691083
exploded-image: exploded-image-optimize
10701084
endif
10711085

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+
10721098
create-buildjdk: create-buildjdk-interim-image
10731099

10741100
docs-jdk-api: docs-jdk-api-javadoc
@@ -1122,8 +1148,16 @@ ifeq ($(call isTargetOs, macosx), true)
11221148
legacy-images: mac-legacy-jre-bundle
11231149
endif
11241150

1125-
# This target builds the documentation image
1126-
docs-image: docs-jdk
1151+
# These targets build the various documentation images
1152+
docs-jdk-image: docs-jdk
1153+
docs-javase-image: docs-javase
1154+
docs-reference-image: docs-reference
1155+
# The docs-jdk-image is what most users expect to be built
1156+
docs-image: docs-jdk-image
1157+
all-docs-images: docs-jdk-image docs-javase-image docs-reference-image
1158+
1159+
docs-bundles: docs-jdk-bundles
1160+
all-docs-bundles: docs-jdk-bundles docs-javase-bundles docs-reference-bundles
11271161

11281162
# This target builds the test image
11291163
test-image: prepare-test-image test-image-jdk-jtreg-native \
@@ -1156,18 +1190,19 @@ endif
11561190
################################################################################
11571191

11581192
# all-images builds all our deliverables as images.
1159-
all-images: product-images test-image docs-image
1193+
all-images: product-images test-image all-docs-images
11601194

11611195
# all-bundles packages all our deliverables as tar.gz bundles.
11621196
all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
11631197

11641198
ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-gensrc gensrc gendata \
11651199
copy java libs static-libs launchers jmods \
11661200
jdk.jdwp.agent-gensrc $(ALL_MODULES) demos \
1167-
exploded-image-base exploded-image \
1201+
exploded-image-base exploded-image runnable-buildjdk \
11681202
create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
11691203
docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
1170-
docs-image test-image all-images \
1204+
docs-image docs-javase-image docs-reference-image all-docs-images \
1205+
docs-bundles all-docs-bundles test-image all-images \
11711206
all-bundles
11721207

11731208
################################################################################

make/ToolsJdk.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2020, 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
@@ -68,6 +68,7 @@ TOOL_TZDB = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
6868
build.tools.tzdb.TzdbZoneRulesCompiler
6969

7070
TOOL_BLACKLISTED_CERTS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
71+
--add-exports java.base/sun.security.util=ALL-UNNAMED \
7172
build.tools.blacklistedcertsconverter.BlacklistedCertsConverter
7273

7374
TOOL_MAKEJAVASECURITY = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \

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

0 commit comments

Comments
 (0)