Skip to content

Commit 7add703

Browse files
committed
Merge
2 parents af148e2 + 68815d5 commit 7add703

File tree

346 files changed

+5393
-1873
lines changed

Some content is hidden

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

346 files changed

+5393
-1873
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/workflows/build-cross-compile.yml

Lines changed: 5 additions & 11 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
@@ -113,10 +107,10 @@ jobs:
113107
sudo apt-get update
114108
sudo apt-get install --only-upgrade apt
115109
sudo apt-get install \
116-
gcc-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
117-
g++-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
118-
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
119-
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
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}} \
120114
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev \
121115
debian-ports-archive-keyring
122116
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 }}
@@ -137,7 +131,7 @@ jobs:
137131
sudo debootstrap
138132
--arch=${{ matrix.debian-arch }}
139133
--verbose
140-
--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
134+
--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
141135
--resolve-deps
142136
--variant=minbase
143137
$(test -n "${{ matrix.debian-keyring }}" && echo "--keyring=${{ matrix.debian-keyring }}")

.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.5.0-1ubuntu1~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.5.0-1ubuntu1~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.5.0-1ubuntu1~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.5.0-1ubuntu1~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.5.0-1ubuntu1~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.5.0-1ubuntu1~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.5.0-1ubuntu1~22.04'
227-
apt-gcc-cross-version: '10.5.0-1ubuntu1~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.5.0-1ubuntu1~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'

make/Docs.gmk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) )
6767
# ordering of tags as the tags are otherwise ordered in order of definition.
6868
JAVADOC_TAGS := \
6969
-tag beaninfo:X \
70-
-tag revised:X \
7170
-tag since.unbundled:X \
7271
-tag Note:X \
7372
-tag ToDo:X \

make/Main.gmk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,11 +967,15 @@ else
967967
jdk.compiler-gendata: $(GENSRC_MODULEINFO_TARGETS)
968968

969969
# Declare dependencies between jmod targets.
970-
# java.base jmod needs jrt-fs.jar and access to the other jmods to be built.
970+
# java.base jmod needs jrt-fs.jar and access to the jmods for all non
971+
# upgradeable modules and their transitive dependencies.
971972
# When creating the BUILDJDK, we don't need to add hashes to java.base, thus
972973
# we don't need to depend on all other jmods
973974
ifneq ($(CREATING_BUILDJDK), true)
974-
java.base-jmod: jrtfs-jar $(filter-out java.base-jmod, $(JMOD_TARGETS))
975+
java.base-jmod: jrtfs-jar $(addsuffix -jmod, $(filter-out java.base, $(sort \
976+
$(foreach m, $(filter-out $(call FindAllUpgradeableModules), $(JMOD_MODULES)), \
977+
$m $(call FindTransitiveDepsForModules, $m) \
978+
))))
975979
endif
976980

977981
# If not already set, set the JVM target so that the JVM will be built.

make/autoconf/lib-tests.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
################################################################################
2929

3030
# Minimum supported versions
31-
JTREG_MINIMUM_VERSION=7.3
31+
JTREG_MINIMUM_VERSION=7.3.1
3232
GTEST_MINIMUM_VERSION=1.14.0
3333

3434
###############################################################################

make/common/NativeCompilation.gmk

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,21 @@ DEPENDENCY_TARGET_SED_PATTERN := \
215215
# The fix-deps-file macro is used to adjust the contents of the generated make
216216
# dependency files to contain paths compatible with make.
217217
#
218+
REWRITE_PATHS_RELATIVE = false
218219
ifeq ($(ALLOW_ABSOLUTE_PATHS_IN_OUTPUT)-$(FILE_MACRO_CFLAGS), false-)
220+
REWRITE_PATHS_RELATIVE = true
221+
endif
222+
223+
# CCACHE_BASEDIR needs fix-deps-file as makefiles use absolute filenames for
224+
# object files while CCACHE_BASEDIR will make ccache relativize all paths for
225+
# its compiler. The compiler then produces relative dependency files.
226+
# make does not know a relative and absolute filename is the same so it will
227+
# ignore such dependencies.
228+
ifneq ($(CCACHE), )
229+
REWRITE_PATHS_RELATIVE = true
230+
endif
231+
232+
ifeq ($(REWRITE_PATHS_RELATIVE), true)
219233
# Need to handle -I flags as both '-Ifoo' and '-I foo'.
220234
MakeCommandRelative = \
221235
$(CD) $(WORKSPACE_ROOT) && \

make/conf/github-actions.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# Versions and download locations for dependencies used by GitHub Actions (GHA)
2727

2828
GTEST_VERSION=1.14.0
29-
JTREG_VERSION=7.3+1
29+
JTREG_VERSION=7.3.1+1
3030

3131
LINUX_X64_BOOT_JDK_EXT=tar.gz
3232
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_linux-x64_bin.tar.gz

make/conf/jib-profiles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,9 +1188,9 @@ var getJibProfilesDependencies = function (input, common) {
11881188
jtreg: {
11891189
server: "jpg",
11901190
product: "jtreg",
1191-
version: "7.3",
1191+
version: "7.3.1",
11921192
build_number: "1",
1193-
file: "bundles/jtreg-7.3+1.zip",
1193+
file: "bundles/jtreg-7.3.1+1.zip",
11941194
environment_name: "JT_HOME",
11951195
environment_path: input.get("jtreg", "home_path") + "/bin",
11961196
configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
@@ -1199,7 +1199,7 @@ var getJibProfilesDependencies = function (input, common) {
11991199
jmh: {
12001200
organization: common.organization,
12011201
ext: "tar.gz",
1202-
revision: "1.35+1.0"
1202+
revision: "1.37+1.0"
12031203
},
12041204

12051205
jcov: {

0 commit comments

Comments
 (0)