Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit 55edc9a

Browse files
[GR-47810] Merge in jdk-17.0.9+1 (23.0).
PullRequest: labsjdk-ce-17/118
2 parents 8f4e37e + 59d933d commit 55edc9a

File tree

2,435 files changed

+115625
-36825
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,435 files changed

+115625
-36825
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ runs:
3030
using: composite
3131
steps:
3232
- name: 'Install MSYS2'
33-
uses: msys2/setup-msys2@v2
33+
# use a specific release of msys2/setup-msys2 to prevent jtreg build failures on newer release
34+
uses: msys2/setup-msys2@7efe20baefed56359985e327d329042cde2434ff
3435
with:
3536
install: 'autoconf tar unzip zip make'
3637
path-type: minimal

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

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ on:
3535
apt-gcc-version:
3636
required: false
3737
type: string
38-
default: '10.3.0-1ubuntu1~20.04'
38+
default: '10.4.0-4ubuntu1~22.04'
3939
apt-gcc-cross-suffix:
4040
required: false
4141
type: string
@@ -44,7 +44,7 @@ on:
4444
jobs:
4545
build-cross-compile:
4646
name: build
47-
runs-on: ubuntu-20.04
47+
runs-on: ubuntu-22.04
4848

4949
strategy:
5050
fail-fast: false
@@ -54,20 +54,34 @@ jobs:
5454
- arm
5555
- s390x
5656
- ppc64le
57+
- riscv64
5758
include:
5859
- target-cpu: aarch64
59-
debian-arch: arm64
6060
gnu-arch: aarch64
61+
debian-arch: arm64
62+
debian-repository: https://httpredir.debian.org/debian/
63+
debian-version: buster
6164
- target-cpu: arm
62-
debian-arch: armhf
6365
gnu-arch: arm
66+
debian-arch: armhf
67+
debian-repository: https://httpredir.debian.org/debian/
68+
debian-version: buster
6469
gnu-abi: eabihf
6570
- target-cpu: s390x
66-
debian-arch: s390x
6771
gnu-arch: s390x
72+
debian-arch: s390x
73+
debian-repository: https://httpredir.debian.org/debian/
74+
debian-version: buster
6875
- target-cpu: ppc64le
69-
debian-arch: ppc64el
7076
gnu-arch: powerpc64le
77+
debian-arch: ppc64el
78+
debian-repository: https://httpredir.debian.org/debian/
79+
debian-version: buster
80+
- target-cpu: riscv64
81+
gnu-arch: riscv64
82+
debian-arch: riscv64
83+
debian-repository: https://deb.debian.org/debian-ports
84+
debian-version: sid
7185

7286
steps:
7387
- name: 'Checkout the JDK source'
@@ -118,9 +132,9 @@ jobs:
118132
--verbose
119133
--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
120134
--resolve-deps
121-
buster
135+
${{ matrix.debian-version }}
122136
sysroot
123-
https://httpredir.debian.org/debian/
137+
${{ matrix.debian-repository }}
124138
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'
125139

126140
- name: 'Prepare sysroot'

.github/workflows/main.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,17 @@ jobs:
7171
# 'false' otherwise.
7272
# arg $1: platform name or names to look for
7373
function check_platform() {
74-
if [[ '${{ !secrets.JDK_SUBMIT_FILTER || startsWith(github.ref, 'refs/heads/submit/') }}' == 'false' ]]; then
75-
# If JDK_SUBMIT_FILTER is set, and this is not a "submit/" branch, don't run anything
76-
echo 'false'
77-
return
78-
fi
79-
8074
if [[ $GITHUB_EVENT_NAME == workflow_dispatch ]]; then
8175
input='${{ github.event.inputs.platforms }}'
8276
elif [[ $GITHUB_EVENT_NAME == push ]]; then
83-
input='${{ secrets.JDK_SUBMIT_PLATFORMS }}'
84-
else
85-
echo 'Internal error in GHA'
86-
exit 1
77+
if [[ '${{ !secrets.JDK_SUBMIT_FILTER || startsWith(github.ref, 'refs/heads/submit/') }}' == 'false' ]]; then
78+
# If JDK_SUBMIT_FILTER is set, and this is not a "submit/" branch, don't run anything
79+
>&2 echo 'JDK_SUBMIT_FILTER is set and not a "submit/" branch'
80+
echo 'false'
81+
return
82+
else
83+
input='${{ secrets.JDK_SUBMIT_PLATFORMS }}'
84+
fi
8785
fi
8886
8987
normalized_input="$(echo ,$input, | tr -d ' ')"
@@ -204,7 +202,7 @@ jobs:
204202
uses: ./.github/workflows/build-macos.yml
205203
with:
206204
platform: macos-x64
207-
xcode-toolset-version: '11.7'
205+
xcode-toolset-version: '12.5.1'
208206
if: needs.select.outputs.macos-x64 == 'true'
209207

210208
build-macos-aarch64:
@@ -213,7 +211,7 @@ jobs:
213211
uses: ./.github/workflows/build-macos.yml
214212
with:
215213
platform: macos-aarch64
216-
xcode-toolset-version: '12.4'
214+
xcode-toolset-version: '12.5.1'
217215
extra-conf-options: '--openjdk-target=aarch64-apple-darwin'
218216
if: needs.select.outputs.macos-aarch64 == 'true'
219217

.jcheck/conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[general]
22
project=jdk-updates
33
jbs=JDK
4-
version=17.0.8
4+
version=17.0.9
55

66
[checks]
77
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ local labsjdk_builder_version = "2d6e93ddd626e9c0e9c862f1d80a5904e7a9165c";
261261
},
262262

263263
# Downstream Graal branch to test against.
264-
local downstream_branch = "me/GR-46278_downstream",
264+
local downstream_branch = "cpu/graal-vm/23.0",
265265

266266
local clone_graal = {
267267
run+: [

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, 2020, 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/build-aux/config.sub

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
#
66
# This code is free software; you can redistribute it and/or modify it
@@ -46,6 +46,13 @@ if echo $* | grep pc-msys >/dev/null ; then
4646
exit
4747
fi
4848

49+
# Canonicalize for riscv which autoconf-config.sub doesn't handle
50+
if echo $* | grep '^riscv\(32\|64\)-linux' >/dev/null ; then
51+
result=`echo $@ | sed 's/linux/unknown-linux/'`
52+
echo $result
53+
exit
54+
fi
55+
4956
# Filter out everything that doesn't begin with "aarch64-"
5057
if ! echo $* | grep '^aarch64-' >/dev/null ; then
5158
. $DIR/autoconf-config.sub "$@"
@@ -78,4 +85,3 @@ result=`echo $result | sed "s/^arm-/aarch64-/"`
7885

7986
echo $result
8087
exit $exitcode
81-

make/autoconf/jvm-features.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ AC_DEFUN_ONCE([JVM_FEATURES_CHECK_SHENANDOAHGC],
311311
AC_MSG_CHECKING([if platform is supported by Shenandoah])
312312
if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86" || \
313313
test "x$OPENJDK_TARGET_CPU" = "xaarch64" || \
314-
test "x$OPENJDK_TARGET_CPU" = "xppc64le"; then
314+
test "x$OPENJDK_TARGET_CPU" = "xppc64le" || \
315+
test "x$OPENJDK_TARGET_CPU" = "xriscv64"; then
315316
AC_MSG_RESULT([yes])
316317
else
317318
AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
@@ -361,7 +362,8 @@ AC_DEFUN_ONCE([JVM_FEATURES_CHECK_ZGC],
361362
AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
362363
AVAILABLE=false
363364
fi
364-
elif test "x$OPENJDK_TARGET_CPU" = "xppc64le"; then
365+
elif test "x$OPENJDK_TARGET_CPU" = "xppc64le" || \
366+
test "x$OPENJDK_TARGET_CPU" = "xriscv64"; then
365367
if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
366368
AC_MSG_RESULT([yes])
367369
else

make/autoconf/lib-bundled.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ AC_DEFUN_ONCE([LIB_SETUP_ZLIB],
166166
167167
DEFAULT_ZLIB=system
168168
if test "x$OPENJDK_TARGET_OS" = xwindows -o "x$OPENJDK_TARGET_OS" = xaix; then
169-
# On windows and aix default is bundled, on others default is system
169+
# On windows and aix default is bundled
170+
DEFAULT_ZLIB=bundled
171+
elif test "x$OPENJDK_TARGET_OS" = xmacosx -a "x$OPENJDK_TARGET_CPU" = xaarch64; then
170172
DEFAULT_ZLIB=bundled
171173
fi
172174

make/autoconf/libraries.m4

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2022, 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
@@ -146,6 +146,12 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
146146
fi
147147
fi
148148
149+
# Because RISC-V only has word-sized atomics, it requries libatomic where
150+
# other common architectures do not. So link libatomic by default.
151+
if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xriscv64; then
152+
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -latomic"
153+
fi
154+
149155
# perfstat lib
150156
if test "x$OPENJDK_TARGET_OS" = xaix; then
151157
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lperfstat"

0 commit comments

Comments
 (0)