Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Merge jdk:master #122

Closed
wants to merge 147 commits into from
Closed
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
e66c6bb
8254349: The TestNoScreenMenuBar test should be updated
mrserb Oct 16, 2020
83ea863
8253559: The INDEX page should link to Serialized Form and Constant V…
jonathan-gibbons Oct 16, 2020
ce1aac1
8028707: javax/swing/JComboBox/6236162/bug6236162.java fails on azure
prsadhuk Oct 17, 2020
0b3e6c5
8194126: Regression automated Test '/open/test/jdk/javax/swing/JColor…
prsadhuk Oct 17, 2020
c17d585
8246774: implement Record Classes as a standard feature in Java
Oct 18, 2020
272bb5d
8253455: Record Classes javax.lang.model changes
Oct 19, 2020
dd032b7
8254798: Deprecate for removal an empty finalize() methods in java.de…
mrserb Oct 19, 2020
51a865d
8254085: javax/swing/text/Caret/TestCaretPositionJTextPane.java faile…
Oct 19, 2020
736e077
8254178: Remove .hgignore
shipilev Oct 19, 2020
011dd0d
8254824: SignalHandlerMark have no purpose
robehn Oct 19, 2020
98a395a
8254880: ZGC: Let ZList iterators be alias templates
pliden Oct 19, 2020
672f566
8254874: ZGC: JNIHandleBlock verification failure in stack watermark …
stefank Oct 19, 2020
8edc2f0
8254912: ZGC: Change ZCollectionInterval type to double
stefank Oct 19, 2020
a1a3e9d
8254882: ZGC: Use static_assert instead of guarantee
pliden Oct 19, 2020
e10b538
8243962: Various JVM TI tests time out using JFR on Windows
Oct 19, 2020
e9be2db
8253453: SourceFileInfoTable should be allocated lazily
cl4es Oct 19, 2020
e76de18
8223051: support loops with long (64b) trip counts
rwestrel Oct 19, 2020
cd66e0f
8253877: gc/g1/TestGCLogMessages.java fails - missing "Evacuation fai…
Oct 19, 2020
4ffed32
8254940: AArch64: Cleanup non-product thread members
AntonKozlov Oct 19, 2020
cb7701b
8253970: Build error: address argument to atomic builtin must be a po…
DamonFool Oct 19, 2020
a0382cd
8253235: JFR.dump does not respect maxage parameter
kvergizova Oct 19, 2020
1da28de
8255009: delta apply fixes for JDK-8246774 and JDK-8253455, pushed to…
Oct 19, 2020
953e472
8254967: com.sun.net.HttpsServer spins on TLS session close
Michael-Mc-Mahon Oct 19, 2020
60f63ec
8254796: Cleanup pervasive unnecessary parameter
jonathan-gibbons Oct 19, 2020
52cb329
8254862: lldb in devkit doesn't work
erikj79 Oct 19, 2020
0b51016
8253660: Need better error report when artifact resolution fails in A…
erikj79 Oct 19, 2020
e2e11d3
8254955: x86: MethodHandlesAdapterBlob is too big
cl4es Oct 19, 2020
74ac77e
8247666: Support Lambda proxy classes in static CDS archive
calvinccheung Oct 19, 2020
f42c032
8254793: [JVMCI] improve speculation encoding
Oct 19, 2020
14e1e17
8255004: [JVMCI] expose JVM_ACC_FIELD_INITIALIZED_FINAL_UPDATE
Oct 19, 2020
0001435
8255020: Minor updates to docs jdk.incubator.vector
Oct 19, 2020
cb5cdd7
8254721: Improve support for conditionally generated files
jonathan-gibbons Oct 19, 2020
0f4fb36
8255032: Conflict between recent pushes breaks the build
jonathan-gibbons Oct 19, 2020
bf19581
8255016: ConstantDescs.FALSE claims it represents TRUE
Oct 19, 2020
6e8835c
7110890: reg test TranslucentShapedFrameTest fails to create non-opaq…
mrserb Oct 19, 2020
7a580ca
8255027: Problem list for Graal test gc/stress/TestStressG1Humongous.…
Oct 20, 2020
c87cdf7
8254029: ObjectMonitor cleanup/minor bug-fix changes extracted from J…
Oct 20, 2020
5b51085
8254997: Remove unimplemented OSContainer::read_memory_limit_in_bytes
shipilev Oct 20, 2020
b65dcfa
8197981: Missing return statement in __sync_val_compare_and_swap_8
shipilev Oct 20, 2020
0a75b37
8254776: Remove unimplemented LowMemoryDetector::check_memory_usage
shipilev Oct 20, 2020
355f44d
8254994: [x86] C1 StubAssembler::call_RT, "call_offset might not be i…
shipilev Oct 20, 2020
98ec4a6
8254805: compiler/debug/TestStressCM.java is still failing
robcasloz Oct 20, 2020
5fedfa7
8251271: C2: Compile::_for_igvn list is corrupted after RenumberLiveN…
nhat-nguyen Oct 20, 2020
7ba6a6b
8251158: Implementation of JEP 387: Elastic Metaspace
tstuefe Oct 20, 2020
5d1397f
8254282: Add Linux x86_32 builds to submit workflow
shipilev Oct 20, 2020
017d151
8254842: [JVMCI] copy thread name when attaching libgraal thread to H…
Oct 20, 2020
21e67e5
8225790: Two NestedDialogs tests fail on Ubuntu
Oct 20, 2020
3f9c8a3
8254966: Remove unused code from Matcher
cl4es Oct 20, 2020
3ee0380
8234393: [macos] printing ignores printer tray
vipinmenon Oct 20, 2020
294e070
8254998: C2: assert(!n->as_Loop()->is_transformed_long_loop()) failur…
rwestrel Oct 20, 2020
cdc8c40
8254878: Move last piece of ZArray to GrowableArray
pliden Oct 20, 2020
76fdd7f
8255038: Adjust adapter_code_size to account for -Xlog:methodhandles …
cl4es Oct 20, 2020
44f9271
8254974: Fix stutter typo in TypeElement
jddarcy Oct 20, 2020
f167a71
8254264: Remove redundant cross_modify_fence()
pchilano Oct 20, 2020
40f847e
8227745: Enable Escape Analysis for Better Performance in the Presenc…
reinrich Oct 20, 2020
cb6167b
8254557: Compiler crashes with java.lang.AssertionError: isSubtype UN…
lgxbslgx Oct 20, 2020
3267b09
8254883: ZGC: Make the ZArrayIterator reusable for ZRelocationSetIter…
pliden Oct 20, 2020
89e5444
8254788: Dead code in the sun.java2d.xr.XRPMBlitLoops$XrSwToPMBlit
mrserb Oct 20, 2020
e577c8c
8253641: Missing newline in the printout of certain JFR events
mbien Oct 20, 2020
ee6eb98
8254995: [x86] ControlWord::print(), rc/pc variables might not be ini…
shipilev Oct 20, 2020
856037c
8255006: Add NULL-check to StringDedupTable lookup
zhengyu123 Oct 20, 2020
acacae5
8254843: Exception launching app on windows in some cases
Oct 20, 2020
afd852c
8241114: Better range handling
TobiHartmann Apr 3, 2020
fa25d08
8236196: Improve string pooling
egahlin Apr 6, 2020
a5cb23e
8240124: Better VM Interning
coleenp Apr 28, 2020
ff3e558
8242685: Better Path Validation
Apr 28, 2020
9291e60
8242680: Improved URI Support
Apr 29, 2020
62a03bd
8237995: Enhance certificate processing
seanjmullan May 6, 2020
7c05f32
8244924: Additional fix for JDK-8241119
TobiHartmann May 13, 2020
798bfb3
8233624: Enhance JNI linkage
May 13, 2020
5f1918d
8244955: Additional Fix for JDK-8240124
coleenp May 18, 2020
27f1ebc
8244479: Further constrain certificates
seanjmullan May 20, 2020
a6723c8
8244136: Improved Buffer supports
May 20, 2020
fc5fca9
8242695: Enhanced buffer support
May 20, 2020
d149dcd
8245407: Enhance zoning of times
naotoj Jun 2, 2020
7eda119
8237990: Enhanced LDAP contexts
AlekseiEfimov Jun 22, 2020
29c6808
8243302: Advanced class supports
Jun 22, 2020
036da99
8236862: Enhance support of Proxy class
Jun 23, 2020
00a5af4
8248574: Improve jpeg processing
prrace Jul 2, 2020
24f7f84
8245412: Better class definitions
iklam Jul 7, 2020
d6cef99
8245417: Improve certificate chain handling
Jul 20, 2020
0d35235
8249927: Specify limits of jdk.serialProxyInterfaceLimit
Jul 31, 2020
cfb02d4
8250861: Crash in MinINode::Ideal(PhaseGVN*, bool)
TobiHartmann Aug 6, 2020
3ccf487
8253019: Enhanced JPEG decoding
prrace Sep 11, 2020
afc967f
8254783: jpackage fails on Windows when application name differs from…
Oct 20, 2020
e5870cf
8252133: The java/awt/GraphicsDevice/DisplayModes/CycleDMImage.java f…
mrserb Oct 21, 2020
42a6ead
8254884: Make sure jvm does not crash with Arm SVE and Vector API
Oct 21, 2020
2ee2b4a
8231454: File lock in Windows on a loaded jar due to a leak in Intros…
mrserb Oct 21, 2020
9e9f5e6
8017179: [macosx] list1 and list2 vistble item isn't desired
mrserb Oct 21, 2020
6bd05b1
8255074: sun.nio.fs.WindowsPath::getPathForWin32Calls synchronizes on…
iignatev Oct 21, 2020
2e510e0
8255043: Incorrectly styled copyright text
mrserb Oct 21, 2020
1b7ddeb
8254976: Re-enable swing jtreg tests which were broken due to samevm …
prsadhuk Oct 21, 2020
2a06335
8254785: compiler/graalunit/HotspotTest.java failed with "missing Gra…
shipilev Oct 21, 2020
bd45191
8255065: Zero: accessor_entry misses the IRIW case
shipilev Oct 21, 2020
c107178
8253964: [Graal] UnschedulableGraphTest#test01fails with expected:<4>…
Oct 21, 2020
27230fa
8255026: C2: Miscellaneous cleanups in Compile and PhaseIdealLoop code
Oct 21, 2020
7e26404
8255000: C2: Unify IGVN processing when loop opts are over
Oct 21, 2020
da97ab5
8253474: Javadoc clean up in HttpsExchange, HttpsParameters, and Http…
pconcannon Oct 21, 2020
e559bd2
8254889: name_and_sig_as_C_string usages in frame coding without Reso…
MBaesken Oct 21, 2020
839f01d
8242068: Signed JAR support for RSASSA-PSS and EdDSA
wangweij Oct 21, 2020
c9269bf
8255036: Shenandoah: Reset GC state for root verifier
zhengyu123 Oct 21, 2020
f813a28
8254692: (se) Clarify the behaviour of the non-abstract SelectorProvi…
fguallini Oct 21, 2020
365f19c
8254790: SIGSEGV in string_indexof_char and stringL_indexof_char intr…
Oct 21, 2020
0efdde1
8238669: Long.divideUnsigned is extremely slow for certain values (Ne…
rgiulietti Oct 21, 2020
8d9e6d0
8255041: Zero: remove old JSR 292 support leftovers
shipilev Oct 21, 2020
6020991
8255068: [JVMCI] errors during compiler creation can be hidden
Oct 21, 2020
615b759
8255070: Shenandoah: Use single thread for concurrent CLD liveness test
zhengyu123 Oct 21, 2020
56ea490
8233343: Deprecate -XX:+CriticalJNINatives flag which implements Java…
coleenp Oct 21, 2020
85a8949
8254913: Increase InlineSmallCode default from 2000 to 2500 for x64
Oct 21, 2020
3445031
8255200: ProblemList com/sun/jdi/EATests.java for ZGC
Oct 21, 2020
9ade94b
8206311: Add docs-javase, docs-reference to CI build
erikj79 Oct 21, 2020
60d3fa2
8255022: Documentation missing for Vector API zero methods
Oct 21, 2020
1191a63
8199697: FIPS 186-4 RSA Key Generation
slumericanB Oct 21, 2020
b9186be
6606767: resexhausted00[34] fail assert(!thread->owns_locks(), "must …
Oct 21, 2020
5d26229
8255174: Vector API unit tests for missed public api code coverage
Oct 22, 2020
7d3d4da
8240709: Enable javax/swing/UI/UnninstallUIMemoryLeaks/UnninstallUIMe…
mrserb Oct 22, 2020
b25d894
8252204: AArch64: Implement SHA3 accelerator/intrinsic
RealFYang Oct 22, 2020
a5b7bc5
7156347: javax/swing/JList/6462008/bug6462008.java fails
prsadhuk Oct 22, 2020
299e115
8198395: Test javax/swing/plaf/metal/MetalLookAndFeel/Test8039750.jav…
prsadhuk Oct 22, 2020
211bb62
8255124: KeepAliveStreamCleaner may crash with java.lang.IllegalMonit…
lahodaj Oct 22, 2020
ae72b52
8255047: Add HotSpot UseDebuggerErgo flags
stefank Oct 22, 2020
cc50c8d
8255196: Remove unused G1FullGCCompactionPoint::merge()
Oct 22, 2020
4634dbe
8223312: Utilize handshakes instead of is_thread_fully_suspended
robehn Oct 22, 2020
f279ddf
8248411: [aarch64] Insufficient error handling when CodeBuffer is exh…
Oct 22, 2020
a0b687b
8254854: [cgroups v1] Metric limits not properly detected on some joi…
jerboaa Oct 22, 2020
0aa3c92
8255262: Remove use of legacy custom @spec tag
jonathan-gibbons Oct 22, 2020
8afdcae
8255031: Update java/util/prefs/AddNodeChangeListener.java to report …
Oct 22, 2020
ff5f226
8255086: Update the root locale display names
naotoj Oct 23, 2020
d8d9197
8242559: Clean the "libawt_xawt" library from code for headless mode
mrserb Oct 23, 2020
2ca7a08
8255268: 32-bit failures in runtime/Metaspace/elastic
tstuefe Oct 23, 2020
a824781
8255210: [Vector API] jdk/incubator/vector/Int256VectorTests.java cra…
DamonFool Oct 23, 2020
64dc4b1
8255225: compiler/aot tests fail on Windows with NPE during artifact …
shipilev Oct 23, 2020
fe74f3c
8255224: x86_32 tests fail with "bad AD file" after JDK-8223051
rwestrel Oct 23, 2020
8e5dff0
8255213: Shenandoah build fails without JFR after JDK-8255036
DamonFool Oct 23, 2020
c1524c5
8255208: CodeStrings passed to Disassembler::decode are ignored
cl4es Oct 23, 2020
107fb9c
8255049: Remove support for the hsdis decode_instructions entry point…
cl4es Oct 23, 2020
c520469
8255131: G1CollectedHeap::is_in() returns wrong result
Oct 23, 2020
e52156d
8255067: Restore Copyright line in file modified by 8253191
Oct 23, 2020
63ce304
8249675: x86: frequency extraction from cpu brand string is incomplete
Oct 23, 2020
0e92053
8254286: Wrong inference in switch expression with "null" arm
lahodaj Oct 23, 2020
ac1748e
8254670: SVE test uses linux-specific api
Oct 23, 2020
55a0cad
8254982: (tz) Upgrade time-zone data to tzdata2020c
Oct 23, 2020
df79257
8255274: [PPC64, s390] wrong StringLatin1.indexOf version matched
TheRealMDoerr Oct 23, 2020
9007bc2
8255129: [PPC64, s390] Check vector_size_supported and add VectorRein…
TheRealMDoerr Oct 23, 2020
12daf2b
8255340: [s390] build failure after JDK-8255208
TheRealMDoerr Oct 23, 2020
5ec1b80
8255287: aarch64: fix SVE patterns for vector shift count
RealFYang Oct 23, 2020
5028b5c
Merge jdk:master
kevinrushforth Oct 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
99 changes: 99 additions & 0 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ jobs:
outputs:
should_run: ${{ steps.check_submit.outputs.should_run }}
bundle_id: ${{ steps.check_bundle_id.outputs.bundle_id }}
platform_linux_x32: ${{ steps.check_platforms.outputs.platform_linux_x32 }}
platform_linux_x64: ${{ steps.check_platforms.outputs.platform_linux_x64 }}
platform_windows_x64: ${{ steps.check_platforms.outputs.platform_windows_x64 }}
platform_macos_x64: ${{ steps.check_platforms.outputs.platform_macos_x64 }}
@@ -32,6 +33,7 @@ jobs:
id: check_platforms
run: |
echo "::set-output name=platform_linux_x64::${{ contains(github.event.inputs.platforms, 'linux x64') || (github.event.inputs.platforms == '' && (secrets.JDK_SUBMIT_PLATFORMS == '' || contains(secrets.JDK_SUBMIT_PLATFORMS, 'linux x64'))) }}"
echo "::set-output name=platform_linux_x32::${{ contains(github.event.inputs.platforms, 'linux x32') || (github.event.inputs.platforms == '' && (secrets.JDK_SUBMIT_PLATFORMS == '' || contains(secrets.JDK_SUBMIT_PLATFORMS, 'linux x32'))) }}"
echo "::set-output name=platform_windows_x64::${{ contains(github.event.inputs.platforms, 'windows x64') || (github.event.inputs.platforms == '' && (secrets.JDK_SUBMIT_PLATFORMS == '' || contains(secrets.JDK_SUBMIT_PLATFORMS, 'windows x64'))) }}"
echo "::set-output name=platform_macos_x64::${{ contains(github.event.inputs.platforms, 'macos x64') || (github.event.inputs.platforms == '' && (secrets.JDK_SUBMIT_PLATFORMS == '' || contains(secrets.JDK_SUBMIT_PLATFORMS, 'macos x64'))) }}"
if: steps.check_submit.outputs.should_run != 'false'
@@ -356,6 +358,103 @@ jobs:
path: build/*/test-results
continue-on-error: true

linux_x32_build:
name: Linux x32
runs-on: "ubuntu-latest"
needs: prerequisites
if: needs.prerequisites.outputs.should_run != 'false' && needs.prerequisites.outputs.platform_linux_x32 != 'false'

strategy:
fail-fast: false
matrix:
flavor:
- build debug
include:
- flavor: build debug
flags: --enable-debug
artifact: -debug

# Reduced 32-bit build uses the same boot JDK as 64-bit build
env:
JDK_VERSION: "${{ fromJson(needs.prerequisites.outputs.dependencies).DEFAULT_VERSION_FEATURE }}"
BOOT_JDK_VERSION: "${{ fromJson(needs.prerequisites.outputs.dependencies).BOOT_JDK_VERSION }}"
BOOT_JDK_FILENAME: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_FILENAME }}"
BOOT_JDK_URL: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_URL }}"
BOOT_JDK_SHA256: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_SHA256 }}"

steps:
- name: Checkout the source
uses: actions/checkout@v2
with:
path: jdk

- name: Restore boot JDK from cache
id: bootjdk
uses: actions/cache@v2
with:
path: ~/bootjdk/${{ env.BOOT_JDK_VERSION }}
key: bootjdk-${{ runner.os }}-${{ env.BOOT_JDK_VERSION }}-${{ env.BOOT_JDK_SHA256 }}-v1

- name: Download boot JDK
run: |
mkdir -p "${HOME}/bootjdk/${BOOT_JDK_VERSION}"
wget -O "${HOME}/bootjdk/${BOOT_JDK_FILENAME}" "${BOOT_JDK_URL}"
echo "${BOOT_JDK_SHA256} ${HOME}/bootjdk/${BOOT_JDK_FILENAME}" | sha256sum -c >/dev/null -
tar -xf "${HOME}/bootjdk/${BOOT_JDK_FILENAME}" -C "${HOME}/bootjdk/${BOOT_JDK_VERSION}"
mv "${HOME}/bootjdk/${BOOT_JDK_VERSION}/"*/* "${HOME}/bootjdk/${BOOT_JDK_VERSION}/"
if: steps.bootjdk.outputs.cache-hit != 'true'

- name: Restore jtreg artifact
id: jtreg_restore
uses: actions/download-artifact@v2
with:
name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }}
path: ~/jtreg/
continue-on-error: true

- name: Restore jtreg artifact (retry)
uses: actions/download-artifact@v2
with:
name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }}
path: ~/jtreg/
if: steps.jtreg_restore.outcome == 'failure'

- name: Checkout gtest sources
uses: actions/checkout@v2
with:
repository: "google/googletest"
ref: "release-${{ fromJson(needs.prerequisites.outputs.dependencies).GTEST_VERSION }}"
path: gtest

# Roll in the multilib environment and its dependencies.
# Some multilib libraries do not have proper inter-dependencies, so we have to
# install their dependencies manually.
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib libfreetype6-dev:i386 libxrandr-dev:i386 libxtst-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libcups2-dev:i386 libasound2-dev:i386

- name: Configure
run: >
bash configure
--with-conf-name=linux-x32
--with-target-bits=32
${{ matrix.flags }}
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
--with-version-build=0
--with-boot-jdk=${HOME}/bootjdk/${BOOT_JDK_VERSION}
--with-jtreg=${HOME}/jtreg
--with-gtest=${GITHUB_WORKSPACE}/gtest
--with-default-make-target="product-bundles test-bundles"
--with-zlib=system
--enable-jtreg-failure-handler
working-directory: jdk

- name: Build
run: make CONF_NAME=linux-x32 ${{ matrix.build-target }}
working-directory: jdk

windows_x64_build:
name: Windows x64
runs-on: "windows-latest"
18 changes: 0 additions & 18 deletions .hgignore

This file was deleted.

47 changes: 38 additions & 9 deletions make/Bundles.gmk
Original file line number Diff line number Diff line change
@@ -410,17 +410,43 @@ endif

################################################################################

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

$(eval $(call SetupBundleFile, BUILD_DOCS_BUNDLE, \
BUNDLE_NAME := $(DOCS_BUNDLE_NAME), \
FILES := $(DOCS_BUNDLE_FILES), \
BASE_DIRS := $(DOCS_IMAGE_DIR), \
$(eval $(call SetupBundleFile, BUILD_DOCS_JDK_BUNDLE, \
BUNDLE_NAME := $(DOCS_JDK_BUNDLE_NAME), \
FILES := $(DOCS_JDK_BUNDLE_FILES), \
BASE_DIRS := $(DOCS_JDK_IMAGE_DIR), \
SUBDIR := docs, \
))

DOCS_TARGETS += $(BUILD_DOCS_BUNDLE)
DOCS_JDK_TARGETS += $(BUILD_DOCS_JDK_BUNDLE)
endif

ifneq ($(filter docs-javase-bundles, $(MAKECMDGOALS)), )
DOCS_JAVASE_BUNDLE_FILES := $(call FindFiles, $(DOCS_JAVASE_IMAGE_DIR))

$(eval $(call SetupBundleFile, BUILD_DOCS_JAVASE_BUNDLE, \
BUNDLE_NAME := $(DOCS_JAVASE_BUNDLE_NAME), \
FILES := $(DOCS_JAVASE_BUNDLE_FILES), \
BASE_DIRS := $(DOCS_JAVASE_IMAGE_DIR), \
SUBDIR := docs-javase, \
))

DOCS_JAVASE_TARGETS += $(BUILD_DOCS_JAVASE_BUNDLE)
endif

ifneq ($(filter docs-reference-bundles, $(MAKECMDGOALS)), )
DOCS_REFERENCE_BUNDLE_FILES := $(call FindFiles, $(DOCS_REFERENCE_IMAGE_DIR))

$(eval $(call SetupBundleFile, BUILD_DOCS_REFERENCE_BUNDLE, \
BUNDLE_NAME := $(DOCS_REFERENCE_BUNDLE_NAME), \
FILES := $(DOCS_REFERENCE_BUNDLE_FILES), \
BASE_DIRS := $(DOCS_REFERENCE_IMAGE_DIR), \
SUBDIR := docs-reference, \
))

DOCS_REFERENCE_TARGETS += $(BUILD_DOCS_REFERENCE_BUNDLE)
endif

################################################################################
@@ -469,9 +495,12 @@ $(eval $(call IncludeCustomExtension, Bundles.gmk))
product-bundles: $(PRODUCT_TARGETS)
legacy-bundles: $(LEGACY_TARGETS)
test-bundles: $(TEST_TARGETS)
docs-bundles: $(DOCS_TARGETS)
docs-jdk-bundles: $(DOCS_JDK_TARGETS)
docs-javase-bundles: $(DOCS_JAVASE_TARGETS)
docs-reference-bundles: $(DOCS_REFERENCE_TARGETS)
static-libs-bundles: $(STATIC_LIBS_TARGETS)
jcov-bundles: $(JCOV_TARGETS)

.PHONY: all default product-bundles test-bundles docs-bundles \
.PHONY: all default product-bundles test-bundles \
docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
static-libs-bundles jcov-bundles
4 changes: 4 additions & 0 deletions make/CompileJavaModules.gmk
Original file line number Diff line number Diff line change
@@ -546,6 +546,10 @@ jdk.jfr_DISABLED_WARNINGS += exports
jdk.jfr_COPY := .xsd .xml .dtd
jdk.jfr_JAVAC_FLAGS := -XDstringConcat=inline

################################################################################

jdk.incubator.vector_DOCLINT += -Xdoclint:all/protected

################################################################################
# If this is an imported module that has prebuilt classes, only compile
# module-info.java.
14 changes: 13 additions & 1 deletion make/CompileModuleTools.gmk
Original file line number Diff line number Diff line change
@@ -33,8 +33,20 @@ include JavaCompilation.gmk

TOOLS_CLASSES_DIR := $(BUILDTOOLS_OUTPUTDIR)/tools_jigsaw_classes

# When using an external BUILDJDK, make it possible to shortcut building of
# these tools using the BUILD_JAVAC instead of having to build the complete
# exploded image first.
ifeq ($(EXTERNAL_BUILDJDK), true)
COMPILER := buildjdk
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK)
else
COMPILER := interim
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED)
endif

$(eval $(call SetupJavaCompilation, BUILD_JIGSAW_TOOLS, \
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
TARGET_RELEASE := $(TARGET_RELEASE), \
COMPILER := $(COMPILER), \
SRC := $(TOPDIR)/make/jdk/src/classes, \
INCLUDES := build/tools/deps \
build/tools/docs \
3 changes: 2 additions & 1 deletion make/CompileToolsJdk.gmk
Original file line number Diff line number Diff line change
@@ -56,7 +56,8 @@ $(eval $(call SetupJavaCompilation, BUILD_TOOLS_JDK, \
DISABLED_WARNINGS := options, \
JAVAC_FLAGS := \
--add-exports java.desktop/sun.awt=ALL-UNNAMED \
--add-exports java.base/sun.text=ALL-UNNAMED, \
--add-exports java.base/sun.text=ALL-UNNAMED \
--add-exports java.base/sun.security.util=ALL-UNNAMED, \
))

TARGETS += $(BUILD_TOOLS_JDK)
4 changes: 2 additions & 2 deletions make/Docs.gmk
Original file line number Diff line number Diff line change
@@ -458,7 +458,7 @@ $(eval $(call SetupApiDocsGeneration, JAVASE_API, \
MODULES := $(JAVASE_MODULES), \
SHORT_NAME := $(JAVASE_SHORT_NAME), \
LONG_NAME := $(JAVASE_LONG_NAME), \
TARGET_DIR := $(IMAGES_OUTPUTDIR)/javase-docs/api, \
TARGET_DIR := $(DOCS_JAVASE_IMAGE_DIR)/api, \
))

# Targets generated are returned in JAVASE_API_JAVADOC_TARGETS and
@@ -476,7 +476,7 @@ $(eval $(call SetupApiDocsGeneration, REFERENCE_API, \
MODULES := $(JAVASE_MODULES), \
SHORT_NAME := $(JAVASE_SHORT_NAME), \
LONG_NAME := $(JAVASE_LONG_NAME), \
TARGET_DIR := $(IMAGES_OUTPUTDIR)/reference-docs/api, \
TARGET_DIR := $(DOCS_REFERENCE_IMAGE_DIR)/api, \
JAVADOC_CMD := $(JAVADOC), \
OPTIONS := $(REFERENCE_OPTIONS), \
TAGS := $(REFERENCE_TAGS), \
47 changes: 35 additions & 12 deletions make/Main.gmk
Original file line number Diff line number Diff line change
@@ -90,7 +90,6 @@ $(eval $(call SetupTarget, buildtools-jdk, \

$(eval $(call SetupTarget, buildtools-modules, \
MAKEFILE := CompileModuleTools, \
DEPS := exploded-image-base, \
))

$(eval $(call SetupTarget, buildtools-hotspot, \
@@ -469,7 +468,7 @@ $(eval $(call SetupTarget, docs-jdk-api-javadoc, \
$(eval $(call SetupTarget, docs-jdk-api-modulegraph, \
MAKEFILE := Docs, \
TARGET := docs-jdk-api-modulegraph, \
DEPS := exploded-image buildtools-modules, \
DEPS := buildtools-modules, \
))

$(eval $(call SetupTarget, docs-javase-api-javadoc, \
@@ -480,7 +479,7 @@ $(eval $(call SetupTarget, docs-javase-api-javadoc, \
$(eval $(call SetupTarget, docs-javase-api-modulegraph, \
MAKEFILE := Docs, \
TARGET := docs-javase-api-modulegraph, \
DEPS := exploded-image buildtools-modules, \
DEPS := buildtools-modules, \
))

$(eval $(call SetupTarget, docs-reference-api-javadoc, \
@@ -491,7 +490,7 @@ $(eval $(call SetupTarget, docs-reference-api-javadoc, \
$(eval $(call SetupTarget, docs-reference-api-modulegraph, \
MAKEFILE := Docs, \
TARGET := docs-reference-api-modulegraph, \
DEPS := exploded-image buildtools-modules, \
DEPS := buildtools-modules, \
))

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

$(eval $(call SetupTarget, docs-bundles, \
$(eval $(call SetupTarget, docs-jdk-bundles, \
MAKEFILE := Bundles, \
TARGET := docs-bundles, \
TARGET := docs-jdk-bundles, \
DEPS := docs-image, \
))

$(eval $(call SetupTarget, docs-javase-bundles, \
MAKEFILE := Bundles, \
TARGET := docs-javase-bundles, \
DEPS := docs-javase-image, \
))

$(eval $(call SetupTarget, docs-reference-bundles, \
MAKEFILE := Bundles, \
TARGET := docs-reference-bundles, \
DEPS := docs-reference-image, \
))

$(eval $(call SetupTarget, static-libs-bundles, \
MAKEFILE := Bundles, \
TARGET := static-libs-bundles, \
@@ -945,10 +956,13 @@ else
$(JMOD_TARGETS) $(INTERIM_JMOD_TARGETS): java.base-libs java.base-copy \
java.base-gendata jdk.jlink-launchers java
endif
else
# The normal non cross compilation case uses needs to wait for the full
else ifeq ($(EXTERNAL_BUILDJDK), false)
# The normal non cross compilation usecase needs to wait for the full
# exploded-image to avoid a race with the optimize target.
$(JMOD_TARGETS) $(INTERIM_JMOD_TARGETS): exploded-image
# The buildtools-modules are used for the exploded-image-optimize target,
# but can be built either using the exploded-image or an external BUILDJDK.
buildtools-modules: exploded-image-base
endif

# All modules include the main license files from java.base.
@@ -1122,8 +1136,16 @@ ifeq ($(call isTargetOs, macosx), true)
legacy-images: mac-legacy-jre-bundle
endif

# This target builds the documentation image
docs-image: docs-jdk
# These targets build the various documentation images
docs-jdk-image: docs-jdk
docs-javase-image: docs-javase
docs-reference-image: docs-reference
# The docs-jdk-image is what most users expect to be built
docs-image: docs-jdk-image
all-docs-images: docs-jdk-image docs-javase-image docs-reference-image

docs-bundles: docs-jdk-bundles
all-docs-bundles: docs-jdk-bundles docs-javase-bundles docs-reference-bundles

# This target builds the test image
test-image: prepare-test-image test-image-jdk-jtreg-native \
@@ -1156,7 +1178,7 @@ endif
################################################################################

# all-images builds all our deliverables as images.
all-images: product-images test-image docs-image
all-images: product-images test-image all-docs-images

# all-bundles packages all our deliverables as tar.gz bundles.
all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
@@ -1167,7 +1189,8 @@ ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-gensrc gensrc gendata \
exploded-image-base exploded-image \
create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
docs-image test-image all-images \
docs-image docs-javase-image docs-reference-image all-docs-images \
docs-bundles all-docs-bundles test-image all-images \
all-bundles

################################################################################
3 changes: 2 additions & 1 deletion make/ToolsJdk.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# 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 \
build.tools.tzdb.TzdbZoneRulesCompiler

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

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