Skip to content

Commit 587a7ca

Browse files
committed
Merge
2 parents 9ebc5ac + 49bef91 commit 587a7ca

File tree

515 files changed

+12835
-43479
lines changed

Some content is hidden

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

515 files changed

+12835
-43479
lines changed

.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'

make/Init.gmk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2012, 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
@@ -138,7 +138,10 @@ ifeq ($(HAS_SPEC),)
138138
# The spec files depend on the autoconf source code. This check makes sure
139139
# the configuration is up to date after changes to configure.
140140
$(SPECS): $(wildcard $(topdir)/make/autoconf/*) \
141-
$(if $(CUSTOM_CONFIG_DIR), $(wildcard $(CUSTOM_CONFIG_DIR)/*))
141+
$(if $(CUSTOM_CONFIG_DIR), $(wildcard $(CUSTOM_CONFIG_DIR)/*)) \
142+
$(addprefix $(topdir)/make/conf/, version-numbers.conf branding.conf) \
143+
$(if $(CUSTOM_CONF_DIR), $(wildcard $(addprefix $(CUSTOM_CONF_DIR)/, \
144+
version-numbers.conf branding.conf)))
142145
ifeq ($(CONF_CHECK), fail)
143146
@echo Error: The configuration is not up to date for \
144147
"'$(lastword $(subst /, , $(dir $@)))'."

make/autoconf/jdk-options.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,9 @@ AC_DEFUN([JDKOPT_CHECK_CODESIGN_PARAMS],
822822
$RM "$CODESIGN_TESTFILE"
823823
$TOUCH "$CODESIGN_TESTFILE"
824824
CODESIGN_SUCCESS=false
825+
826+
$ECHO "check codesign, calling $CODESIGN $PARAMS $CODESIGN_TESTFILE" >&AS_MESSAGE_LOG_FD
827+
825828
eval \"$CODESIGN\" $PARAMS \"$CODESIGN_TESTFILE\" 2>&AS_MESSAGE_LOG_FD \
826829
>&AS_MESSAGE_LOG_FD && CODESIGN_SUCCESS=true
827830
$RM "$CODESIGN_TESTFILE"

make/autoconf/platform.m4

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 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
@@ -567,8 +567,6 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
567567
HOTSPOT_$1_CPU_DEFINE=PPC64
568568
elif test "x$OPENJDK_$1_CPU" = xppc64le; then
569569
HOTSPOT_$1_CPU_DEFINE=PPC64
570-
elif test "x$OPENJDK_$1_CPU" = xriscv32; then
571-
HOTSPOT_$1_CPU_DEFINE=RISCV32
572570
elif test "x$OPENJDK_$1_CPU" = xriscv64; then
573571
HOTSPOT_$1_CPU_DEFINE=RISCV64
574572
@@ -577,10 +575,14 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
577575
HOTSPOT_$1_CPU_DEFINE=SPARC
578576
elif test "x$OPENJDK_$1_CPU" = xppc; then
579577
HOTSPOT_$1_CPU_DEFINE=PPC32
578+
elif test "x$OPENJDK_$1_CPU" = xriscv32; then
579+
HOTSPOT_$1_CPU_DEFINE=RISCV32
580580
elif test "x$OPENJDK_$1_CPU" = xs390; then
581581
HOTSPOT_$1_CPU_DEFINE=S390
582582
elif test "x$OPENJDK_$1_CPU" = xs390x; then
583583
HOTSPOT_$1_CPU_DEFINE=S390
584+
elif test "x$OPENJDK_$1_CPU" = xloongarch64; then
585+
HOTSPOT_$1_CPU_DEFINE=LOONGARCH64
584586
elif test "x$OPENJDK_$1_CPU" != x; then
585587
HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
586588
fi
@@ -660,11 +662,10 @@ AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET],
660662
PLATFORM_CHECK_DEPRECATION
661663
])
662664

663-
AC_DEFUN_ONCE([PLATFORM_CHECK_DEPRECATION],
665+
AC_DEFUN([PLATFORM_CHECK_DEPRECATION],
664666
[
665667
AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
666668
[Suppress the error when configuring for a deprecated port @<:@no@:>@])])
667-
AC_REQUIRE([PLATFORM_EXTRACT_TARGET_AND_BUILD])
668669
if test "x$OPENJDK_TARGET_OS" = xwindows && test "x$OPENJDK_TARGET_CPU" = xx86; then
669670
if test "x$enable_deprecated_ports" = "xyes"; then
670671
AC_MSG_WARN([The Windows 32-bit x86 port is deprecated and may be removed in a future release.])

make/autoconf/toolchain.m4

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,11 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_EXTRA],
804804
805805
case $TOOLCHAIN_TYPE in
806806
gcc|clang)
807-
UTIL_REQUIRE_TOOLCHAIN_PROGS(CXXFILT, c++filt)
807+
if test "x$OPENJDK_TARGET_OS" = xaix; then
808+
UTIL_REQUIRE_TOOLCHAIN_PROGS(CXXFILT, ibm-llvm-cxxfilt)
809+
else
810+
UTIL_REQUIRE_TOOLCHAIN_PROGS(CXXFILT, c++filt)
811+
fi
808812
;;
809813
esac
810814
])

make/conf/jib-profiles.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,8 @@ var getJibProfilesProfiles = function (input, common, data) {
463463
target_cpu: "x86",
464464
build_cpu: "x64",
465465
dependencies: ["devkit", "gtest"],
466-
configure_args: concat(common.configure_args_32bit),
466+
configure_args: concat(common.configure_args_32bit,
467+
"--enable-deprecated-ports"),
467468
},
468469

469470
"windows-aarch64": {

make/devkit/createJMHBundle.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
# Create a bundle in the build directory, containing what's needed to
2727
# build and run JMH microbenchmarks from the OpenJDK build.
2828

29-
JMH_VERSION=1.36
30-
COMMONS_MATH3_VERSION=3.2
29+
JMH_VERSION=1.37
30+
COMMONS_MATH3_VERSION=3.6.1
3131
JOPT_SIMPLE_VERSION=5.0.4
3232

3333
BUNDLE_NAME=jmh-$JMH_VERSION.tar.gz

make/modules/java.desktop/lib/Awt2dLibraries.gmk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ ifeq ($(call isTargetOs, windows macosx), false)
237237
DISABLED_WARNINGS_gcc_gtk3_interface.c := parentheses type-limits unused-function, \
238238
DISABLED_WARNINGS_gcc_OGLBufImgOps.c := format-nonliteral, \
239239
DISABLED_WARNINGS_gcc_OGLPaints.c := format-nonliteral, \
240+
DISABLED_WARNINGS_gcc_screencast_pipewire.c := undef, \
241+
DISABLED_WARNINGS_gcc_screencast_portal.c := undef, \
240242
DISABLED_WARNINGS_gcc_sun_awt_X11_GtkFileDialogPeer.c := parentheses, \
241243
DISABLED_WARNINGS_gcc_X11SurfaceData.c := implicit-fallthrough pointer-to-int-cast, \
242244
DISABLED_WARNINGS_gcc_XlibWrapper.c := type-limits pointer-to-int-cast, \
@@ -421,6 +423,7 @@ else
421423
LIBFREETYPE_LIBS := -lfreetype
422424
endif
423425

426+
# gcc_ftobjs.c := maybe-uninitialized required for GCC 7 builds.
424427
$(eval $(call SetupJdkLibrary, BUILD_LIBFREETYPE, \
425428
NAME := freetype, \
426429
OPTIMIZATION := HIGHEST, \
@@ -429,6 +432,7 @@ else
429432
EXTRA_HEADER_DIRS := $(BUILD_LIBFREETYPE_HEADER_DIRS), \
430433
DISABLED_WARNINGS_microsoft := 4267 4244 4996, \
431434
DISABLED_WARNINGS_gcc := dangling-pointer stringop-overflow, \
435+
DISABLED_WARNINGS_gcc_ftobjs.c := maybe-uninitialized, \
432436
LDFLAGS := $(LDFLAGS_JDKLIB) \
433437
$(call SET_SHARED_LIBRARY_ORIGIN), \
434438
))

0 commit comments

Comments
 (0)