Skip to content

Commit 57b3e3a

Browse files
Merge tag 'jdk-22+13' into labsjdk/automation-9-1-2023-407
Added tag jdk-22+13 for changeset cb3f968
2 parents eaacc56 + cb3f968 commit 57b3e3a

File tree

1,479 files changed

+31933
-16574
lines changed

Some content is hidden

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

1,479 files changed

+31933
-16574
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
* -text
2+
*.java diff=java
3+
*.c diff=cpp
4+
*.h diff=cpp
5+
*.cpp diff=cpp
6+
*.hpp diff=cpp
7+
*.md diff=markdown
8+
*.sh diff=bash
9+
*.html diff=html
10+
*.css diff=css

.github/actions/get-bootjdk/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2022, 2023, 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
@@ -104,6 +104,6 @@ runs:
104104
- name: 'Export path to where BootJDK is installed'
105105
id: path-name
106106
run: |
107-
# Export the path
108-
echo 'path=bootjdk/jdk' >> $GITHUB_OUTPUT
107+
# Export the absolute path
108+
echo "path=`pwd`/bootjdk/jdk" >> $GITHUB_OUTPUT
109109
shell: bash

.github/workflows/build-cross-compile.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ on:
3131
gcc-major-version:
3232
required: true
3333
type: string
34-
apt-gcc-version:
35-
required: true
36-
type: string
37-
apt-gcc-cross-version:
38-
required: true
39-
type: string
4034
extra-conf-options:
4135
required: false
4236
type: string
@@ -86,8 +80,7 @@ jobs:
8680
- target-cpu: riscv64
8781
gnu-arch: riscv64
8882
debian-arch: riscv64
89-
debian-repository: https://deb.debian.org/debian-ports
90-
debian-keyring: /usr/share/keyrings/debian-ports-archive-keyring.gpg
83+
debian-repository: https://httpredir.debian.org/debian/
9184
debian-version: sid
9285

9386
steps:
@@ -114,12 +107,11 @@ jobs:
114107
sudo apt-get update
115108
sudo apt-get install --only-upgrade apt
116109
sudo apt-get install \
117-
gcc-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
118-
g++-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
119-
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
120-
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
121-
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev \
122-
debian-ports-archive-keyring
110+
gcc-${{ inputs.gcc-major-version }} \
111+
g++-${{ inputs.gcc-major-version }} \
112+
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}} \
113+
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}} \
114+
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
123115
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
124116
125117
- name: 'Check cache for sysroot'
@@ -138,9 +130,9 @@ jobs:
138130
sudo debootstrap
139131
--arch=${{ matrix.debian-arch }}
140132
--verbose
141-
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev
133+
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype-dev,libpng-dev
142134
--resolve-deps
143-
$(test -n "${{ matrix.debian-keyring }}" && echo "--keyring=${{ matrix.debian-keyring }}")
135+
--variant=minbase
144136
${{ matrix.debian-version }}
145137
sysroot
146138
${{ matrix.debian-repository }}
@@ -153,7 +145,8 @@ jobs:
153145
sudo chown ${USER} -R sysroot
154146
rm -rf sysroot/{dev,proc,run,sys,var}
155147
rm -rf sysroot/usr/{sbin,bin,share}
156-
rm -rf sysroot/usr/lib/{apt,udev,systemd}
148+
rm -rf sysroot/usr/lib/{apt,gcc,udev,systemd}
149+
rm -rf sysroot/usr/libexec/gcc
157150
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'
158151

159152
- name: 'Configure'

.github/workflows/build-linux.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ on:
4949
required: false
5050
type: string
5151
default: ''
52-
apt-gcc-version:
53-
required: true
54-
type: string
5552
apt-architecture:
5653
required: false
5754
type: string
@@ -114,7 +111,7 @@ jobs:
114111
fi
115112
sudo apt-get update
116113
sudo apt-get install --only-upgrade apt
117-
sudo apt-get install gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }}=${{ inputs.apt-gcc-version }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }}=${{ inputs.apt-gcc-version }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
114+
sudo apt-get install gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
118115
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
119116
120117
- name: 'Configure'

.github/workflows/main.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ jobs:
130130
with:
131131
platform: linux-x64
132132
gcc-major-version: '10'
133-
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
134133
configure-arguments: ${{ github.event.inputs.configure-arguments }}
135134
make-arguments: ${{ github.event.inputs.make-arguments }}
136135
# The linux-x64 jdk bundle is used as buildjdk for the cross-compile job
@@ -144,11 +143,10 @@ jobs:
144143
platform: linux-x86
145144
gcc-major-version: '10'
146145
gcc-package-suffix: '-multilib'
147-
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
148146
apt-architecture: 'i386'
149147
# Some multilib libraries do not have proper inter-dependencies, so we have to
150148
# install their dependencies manually.
151-
apt-extra-packages: 'libfreetype6-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libc6-i386 libgcc-s1:i386 libstdc++6:i386'
149+
apt-extra-packages: 'libfreetype-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libc6-i386 libgcc-s1:i386 libstdc++6:i386'
152150
extra-conf-options: '--with-target-bits=32'
153151
configure-arguments: ${{ github.event.inputs.configure-arguments }}
154152
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -163,7 +161,6 @@ jobs:
163161
make-target: 'hotspot'
164162
debug-levels: '[ "debug" ]'
165163
gcc-major-version: '10'
166-
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
167164
extra-conf-options: '--disable-precompiled-headers'
168165
configure-arguments: ${{ github.event.inputs.configure-arguments }}
169166
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -178,7 +175,6 @@ jobs:
178175
make-target: 'hotspot'
179176
debug-levels: '[ "debug" ]'
180177
gcc-major-version: '10'
181-
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
182178
extra-conf-options: '--with-jvm-variants=zero --disable-precompiled-headers'
183179
configure-arguments: ${{ github.event.inputs.configure-arguments }}
184180
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -193,7 +189,6 @@ jobs:
193189
make-target: 'hotspot'
194190
debug-levels: '[ "debug" ]'
195191
gcc-major-version: '10'
196-
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
197192
extra-conf-options: '--with-jvm-variants=minimal --disable-precompiled-headers'
198193
configure-arguments: ${{ github.event.inputs.configure-arguments }}
199194
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -209,7 +204,6 @@ jobs:
209204
# Technically this is not the "debug" level, but we can't inject a new matrix state for just this job
210205
debug-levels: '[ "debug" ]'
211206
gcc-major-version: '10'
212-
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
213207
extra-conf-options: '--with-debug-level=optimized --disable-precompiled-headers'
214208
configure-arguments: ${{ github.event.inputs.configure-arguments }}
215209
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -223,8 +217,6 @@ jobs:
223217
uses: ./.github/workflows/build-cross-compile.yml
224218
with:
225219
gcc-major-version: '10'
226-
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
227-
apt-gcc-cross-version: '10.4.0-4ubuntu1~22.04cross1'
228220
configure-arguments: ${{ github.event.inputs.configure-arguments }}
229221
make-arguments: ${{ github.event.inputs.make-arguments }}
230222
if: needs.select.outputs.linux-cross-compile == 'true'
@@ -290,7 +282,6 @@ jobs:
290282
# build JDK, and we do not need the additional testing of the graphs.
291283
extra-conf-options: '--disable-full-docs'
292284
gcc-major-version: '10'
293-
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
294285
configure-arguments: ${{ github.event.inputs.configure-arguments }}
295286
make-arguments: ${{ github.event.inputs.make-arguments }}
296287
if: needs.select.outputs.docs == 'true'

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Contributing to the JDK
22

3-
Please see <https://openjdk.org/contribute> for how to contribute.
3+
Please see the [OpenJDK Developers’ Guide](https://openjdk.org/guide/).

doc/building.html

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ <h3 id="building-on-x86">Building on x86</h3>
324324
<p>Even for 32-bit builds, it is recommended to use a 64-bit build
325325
machine, and instead create a 32-bit target using
326326
<code>--with-target-bits=32</code>.</p>
327-
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.</p>
327+
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in
328+
a future release.</p>
328329
<h3 id="building-on-aarch64">Building on aarch64</h3>
329330
<p>At a minimum, a machine with 8 cores is advisable, as well as 8 GB of
330331
RAM. (The more cores to use, the more memory you need.) At least 6 GB of
@@ -401,7 +402,8 @@ <h3 id="windows">Windows</h3>
401402
use <code>--with-msvcr-dll=/cygdrive/c/msvcr100.dll</code> rather than
402403
<code>--with-msvcr-dll=c:\msvcr100.dll</code>. For details on this
403404
conversion, see the section on <a href="#fixpath">Fixpath</a>.</p>
404-
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.</p>
405+
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in
406+
a future release.</p>
405407
<h4 id="cygwin">Cygwin</h4>
406408
<p>A functioning <a href="http://www.cygwin.com/">Cygwin</a> environment
407409
is required for building the JDK on Windows. If you have a 64-bit OS, we
@@ -1113,13 +1115,13 @@ <h2 id="running-tests">Running Tests</h2>
11131115
Test framework. The top directory, which contains both
11141116
<code>googletest</code> and <code>googlemock</code> directories, should
11151117
be specified via <code>--with-gtest</code>. The minimum supported
1116-
version of Google Test is 1.13.0, whose source code can be obtained:</p>
1118+
version of Google Test is 1.14.0, whose source code can be obtained:</p>
11171119
<ul>
11181120
<li>by downloading and unpacking the source bundle from <a
1119-
href="https://github.com/google/googletest/releases/tag/v1.13.0">here</a></li>
1120-
<li>or by checking out <code>v1.13.0</code> tag of
1121+
href="https://github.com/google/googletest/releases/tag/v1.14.0">here</a></li>
1122+
<li>or by checking out <code>v1.14.0</code> tag of
11211123
<code>googletest</code> project:
1122-
<code>git clone -b v1.13.0 https://github.com/google/googletest</code></li>
1124+
<code>git clone -b v1.14.0 https://github.com/google/googletest</code></li>
11231125
</ul>
11241126
<p>To execute the most basic tests (tier 1), use:</p>
11251127
<pre><code>make run-test-tier1</code></pre>
@@ -2255,18 +2257,7 @@ <h2 id="contributing-to-the-jdk">Contributing to the JDK</h2>
22552257
must ask you to follow our rules and guidelines to be able to accept
22562258
your contribution.</p>
22572259
<p>The official place to start is the <a
2258-
href="http://openjdk.org/contribute/">'How to contribute' page</a>.
2259-
There is also an official (but somewhat outdated and skimpy on details)
2260-
<a href="http://openjdk.org/guide/">Developer's Guide</a>.</p>
2261-
<p>If this seems overwhelming to you, the Adoption Group is there to
2262-
help you! A good place to start is their <a
2263-
href="https://wiki.openjdk.org/display/Adoption/New+Contributor">'New
2264-
Contributor' page</a>, or start reading the comprehensive <a
2265-
href="https://adoptopenjdk.gitbooks.io/adoptopenjdk-getting-started-kit/en/">Getting
2266-
Started Kit</a>. The Adoption Group will also happily answer any
2267-
questions you have about contributing. Contact them by <a
2268-
href="http://mail.openjdk.org/mailman/listinfo/adoption-discuss">mail</a>
2269-
or <a href="http://openjdk.org/irc/">IRC</a>.</p>
2260+
href="https://openjdk.org/guide/">OpenJDK Developers’ Guide</a>.</p>
22702261
<h2 id="editing-this-document">Editing this document</h2>
22712262
<p>If you want to contribute changes to this document, edit
22722263
<code>doc/building.md</code> and then run

doc/building.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -884,11 +884,11 @@ Download the latest `.tar.gz` file, unpack it, and point `--with-jtreg` to the
884884
Building of Hotspot Gtest suite requires the source code of Google
885885
Test framework. The top directory, which contains both `googletest`
886886
and `googlemock` directories, should be specified via `--with-gtest`.
887-
The minimum supported version of Google Test is 1.13.0, whose source
887+
The minimum supported version of Google Test is 1.14.0, whose source
888888
code can be obtained:
889889
890-
* by downloading and unpacking the source bundle from [here](https://github.com/google/googletest/releases/tag/v1.13.0)
891-
* or by checking out `v1.13.0` tag of `googletest` project: `git clone -b v1.13.0 https://github.com/google/googletest`
890+
* by downloading and unpacking the source bundle from [here](https://github.com/google/googletest/releases/tag/v1.14.0)
891+
* or by checking out `v1.14.0` tag of `googletest` project: `git clone -b v1.14.0 https://github.com/google/googletest`
892892
893893
To execute the most basic tests (tier 1), use:
894894
```
@@ -2032,20 +2032,7 @@ First of all: Thank you! We gladly welcome your contribution.
20322032
However, please bear in mind that the JDK is a massive project, and we must ask
20332033
you to follow our rules and guidelines to be able to accept your contribution.
20342034
2035-
The official place to start is the ['How to contribute' page](
2036-
http://openjdk.org/contribute/). There is also an official (but somewhat
2037-
outdated and skimpy on details) [Developer's Guide](
2038-
http://openjdk.org/guide/).
2039-
2040-
If this seems overwhelming to you, the Adoption Group is there to help you! A
2041-
good place to start is their ['New Contributor' page](
2042-
https://wiki.openjdk.org/display/Adoption/New+Contributor), or start
2043-
reading the comprehensive [Getting Started Kit](
2044-
https://adoptopenjdk.gitbooks.io/adoptopenjdk-getting-started-kit/en/). The
2045-
Adoption Group will also happily answer any questions you have about
2046-
contributing. Contact them by [mail](
2047-
http://mail.openjdk.org/mailman/listinfo/adoption-discuss) or [IRC](
2048-
http://openjdk.org/irc/).
2035+
The official place to start is the [OpenJDK Developers’ Guide](https://openjdk.org/guide/).
20492036
20502037
## Editing this document
20512038

make/Bundles.gmk

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,27 @@ endif
478478

479479
################################################################################
480480

481+
ifneq ($(filter static-libs-graal-bundles, $(MAKECMDGOALS)), )
482+
STATIC_LIBS_GRAAL_BUNDLE_FILES := $(call FindFiles, $(STATIC_LIBS_GRAAL_IMAGE_DIR))
483+
484+
ifeq ($(OPENJDK_TARGET_OS)-$(DEBUG_LEVEL), macosx-release)
485+
STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_MACOSX_CONTENTS_SUBDIR)/Home
486+
else
487+
STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_BUNDLE_SUBDIR)
488+
endif
489+
490+
$(eval $(call SetupBundleFile, BUILD_STATIC_LIBS_GRAAL_BUNDLE, \
491+
BUNDLE_NAME := $(STATIC_LIBS_GRAAL_BUNDLE_NAME), \
492+
FILES := $(STATIC_LIBS_GRAAL_BUNDLE_FILES), \
493+
BASE_DIRS := $(STATIC_LIBS_GRAAL_IMAGE_DIR), \
494+
SUBDIR := $(STATIC_LIBS_GRAAL_BUNDLE_SUBDIR), \
495+
))
496+
497+
STATIC_LIBS_GRAAL_TARGETS += $(BUILD_STATIC_LIBS_GRAAL_BUNDLE)
498+
endif
499+
500+
################################################################################
501+
481502
# Hook to include the corresponding custom file, if present.
482503
$(eval $(call IncludeCustomExtension, Bundles.gmk))
483504

@@ -490,8 +511,9 @@ docs-jdk-bundles: $(DOCS_JDK_TARGETS)
490511
docs-javase-bundles: $(DOCS_JAVASE_TARGETS)
491512
docs-reference-bundles: $(DOCS_REFERENCE_TARGETS)
492513
static-libs-bundles: $(STATIC_LIBS_TARGETS)
514+
static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS)
493515
jcov-bundles: $(JCOV_TARGETS)
494516

495517
.PHONY: all default product-bundles test-bundles \
496518
docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
497-
static-libs-bundles jcov-bundles
519+
static-libs-bundles static-libs-graal-bundles jcov-bundles

make/Docs.gmk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) )
6666
# In order to get a specific ordering it's necessary to specify the total
6767
# ordering of tags as the tags are otherwise ordered in order of definition.
6868
JAVADOC_TAGS := \
69-
-tag beaninfo:X \
70-
-tag revised:X \
71-
-tag since.unbundled:X \
72-
-tag Note:X \
73-
-tag ToDo:X \
7469
-tag 'apiNote:a:API Note:' \
7570
-tag 'implSpec:a:Implementation Requirements:' \
7671
-tag 'implNote:a:Implementation Note:' \

0 commit comments

Comments
 (0)