Skip to content

Commit fb74a27

Browse files
committed
Merge commit 'e5348638a8a28974a269d71692045e3226b698c5' into prepare-sapmachine-23.0.2
2 parents 127de01 + e534863 commit fb74a27

File tree

304 files changed

+18462
-3352
lines changed

Some content is hidden

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

304 files changed

+18462
-3352
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- target-cpu: riscv64
8585
gnu-arch: riscv64
8686
debian-arch: riscv64
87-
debian-repository: https://httpredir.debian.org/debian/
87+
debian-repository: https://snapshot.debian.org/archive/debian/20240228T034848Z/
8888
debian-version: sid
8989
tolerate-sysroot-errors: true
9090

.github/workflows/main.yml

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ on:
4040
platforms:
4141
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
4242
required: true
43-
default: 'linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
43+
default: 'linux-x64, linux-x86-hs, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
4444
configure-arguments:
4545
description: 'Additional configure arguments'
4646
required: false
@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ubuntu-22.04
6666
outputs:
6767
linux-x64: ${{ steps.include.outputs.linux-x64 }}
68-
linux-x86: ${{ steps.include.outputs.linux-x86 }}
68+
linux-x86-hs: ${{ steps.include.outputs.linux-x86-hs }}
6969
linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
7070
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
7171
macos-x64: ${{ steps.include.outputs.macos-x64 }}
@@ -118,7 +118,7 @@ jobs:
118118
}
119119
120120
echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
121-
echo "linux-x86=$(check_platform linux-x86 linux x86)" >> $GITHUB_OUTPUT
121+
echo "linux-x86-hs=$(check_platform linux-x86-hs linux x86)" >> $GITHUB_OUTPUT
122122
echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
123123
echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
124124
echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
@@ -142,12 +142,13 @@ jobs:
142142
make-arguments: ${{ github.event.inputs.make-arguments }}
143143
if: needs.select.outputs.linux-x64 == 'true'
144144

145-
build-linux-x86:
146-
name: linux-x86
145+
build-linux-x86-hs:
146+
name: linux-x86-hs
147147
needs: select
148148
uses: ./.github/workflows/build-linux.yml
149149
with:
150150
platform: linux-x86
151+
make-target: 'hotspot'
151152
gcc-major-version: '10'
152153
gcc-package-suffix: '-multilib'
153154
apt-architecture: 'i386'
@@ -157,7 +158,7 @@ jobs:
157158
extra-conf-options: '--with-target-bits=32 --enable-fallback-linker --enable-libffi-bundling'
158159
configure-arguments: ${{ github.event.inputs.configure-arguments }}
159160
make-arguments: ${{ github.event.inputs.make-arguments }}
160-
if: needs.select.outputs.linux-x86 == 'true'
161+
if: needs.select.outputs.linux-x86-hs == 'true'
161162

162163
build-linux-x64-hs-nopch:
163164
name: linux-x64-hs-nopch
@@ -307,16 +308,6 @@ jobs:
307308
bootjdk-platform: linux-x64
308309
runs-on: ubuntu-22.04
309310

310-
test-linux-x86:
311-
name: linux-x86
312-
needs:
313-
- build-linux-x86
314-
uses: ./.github/workflows/test.yml
315-
with:
316-
platform: linux-x86
317-
bootjdk-platform: linux-x64
318-
runs-on: ubuntu-22.04
319-
320311
test-macos-x64:
321312
name: macos-x64
322313
needs:
@@ -355,7 +346,7 @@ jobs:
355346
if: ${{ github.event_name != 'pull_request' || github.repository != 'SAP/SapMachine' }}
356347
needs:
357348
- build-linux-x64
358-
- build-linux-x86
349+
- build-linux-x86-hs
359350
- build-linux-x64-hs-nopch
360351
- build-linux-x64-hs-zero
361352
- build-linux-x64-hs-minimal
@@ -366,31 +357,28 @@ jobs:
366357
- build-windows-x64
367358
- build-windows-aarch64
368359
- test-linux-x64
369-
- test-linux-x86
370360
- test-macos-x64
361+
- test-macos-aarch64
371362
- test-windows-x64
372363

373364
steps:
374-
# Hack to get hold of the api environment variables that are only defined for actions
375-
- name: 'Get API configuration'
376-
id: api
377-
uses: actions/github-script@v7
378-
with:
379-
script: 'return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'
380-
381365
- name: 'Remove bundle artifacts'
382366
run: |
383367
# Find and remove all bundle artifacts
384-
ALL_ARTIFACT_URLS="$(curl -s \
385-
-H 'Accept: application/json;api-version=6.0-preview' \
386-
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
387-
'${{ fromJson(steps.api.outputs.result).url }}_apis/pipelines/workflows/${{ github.run_id }}/artifacts?api-version=6.0-preview')"
388-
BUNDLE_ARTIFACT_URLS="$(echo "$ALL_ARTIFACT_URLS" | jq -r -c '.value | map(select(.name|startswith("bundles-"))) | .[].url')"
389-
for url in $BUNDLE_ARTIFACT_URLS; do
390-
echo "Removing $url"
391-
curl -s \
392-
-H 'Accept: application/json;api-version=6.0-preview' \
393-
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
394-
-X DELETE "$url" \
368+
# See: https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28
369+
ALL_ARTIFACT_IDS="$(curl -sL \
370+
-H 'Accept: application/vnd.github+json' \
371+
-H 'Authorization: Bearer ${{ github.token }}' \
372+
-H 'X-GitHub-Api-Version: 2022-11-28' \
373+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
374+
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
375+
for id in $BUNDLE_ARTIFACT_IDS; do
376+
echo "Removing $id"
377+
curl -sL \
378+
-X DELETE \
379+
-H 'Accept: application/vnd.github+json' \
380+
-H 'Authorization: Bearer ${{ github.token }}' \
381+
-H 'X-GitHub-Api-Version: 2022-11-28' \
382+
"${{ github.api_url }}/repos/${{ github.repository }}/actions/artifacts/$id" \
395383
|| echo "Failed to remove bundle"
396384
done

.jcheck/conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[general]
22
project=jdk-updates
33
jbs=JDK
4-
version=23.0.1
4+
version=23.0.2
55

66
[checks]
77
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists
8-
warning=issuestitle
8+
warning=issuestitle,binary
99

1010
[repository]
1111
tags=(?:jdk-(?:[1-9]([0-9]*)(?:\.(?:0|[1-9][0-9]*)){0,4})(?:\+(?:(?:[0-9]+))|(?:-ga)))|(?:jdk[4-9](?:u\d{1,3})?-(?:(?:b\d{2,3})|(?:ga)))|(?:hs\d\d(?:\.\d{1,2})?-b\d\d)

SECURITY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# JDK Vulnerabilities
2+
3+
Please follow the process outlined in the [OpenJDK Vulnerability Policy](https://openjdk.org/groups/vulnerability/report) to disclose vulnerabilities in the JDK.

doc/building.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,9 @@ <h3 id="clang">clang</h3>
614614
<code>--with-toolchain-type=clang</code>.</p>
615615
<h3 id="apple-xcode">Apple Xcode</h3>
616616
<p>The oldest supported version of Xcode is 13.0.</p>
617-
<p>You will need the Xcode command line developer tools to be able to
618-
build the JDK. (Actually, <em>only</em> the command line tools are
619-
needed, not the IDE.) The simplest way to install these is to run:</p>
620-
<pre><code>xcode-select --install</code></pre>
617+
<p>You will need to download Xcode either from the App Store or specific
618+
versions can be easily located via the <a
619+
href="https://xcodereleases.com">Xcode Releases</a> website.</p>
621620
<p>When updating Xcode, it is advisable to keep an older version for
622621
building the JDK. To use a specific version of Xcode you have multiple
623622
options:</p>

doc/building.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,9 @@ To use clang instead of gcc on Linux, use `--with-toolchain-type=clang`.
422422

423423
The oldest supported version of Xcode is 13.0.
424424

425-
You will need the Xcode command line developer tools to be able to build the
426-
JDK. (Actually, *only* the command line tools are needed, not the IDE.) The
427-
simplest way to install these is to run:
428-
429-
```
430-
xcode-select --install
431-
```
425+
You will need to download Xcode either from the App Store or specific versions
426+
can be easily located via the [Xcode Releases](https://xcodereleases.com)
427+
website.
432428

433429
When updating Xcode, it is advisable to keep an older version for building the
434430
JDK. To use a specific version of Xcode you have multiple options:

make/autoconf/configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,11 @@ AC_OUTPUT
313313

314314
# After AC_OUTPUT, we need to do final work
315315
CUSTOM_CONFIG_OUTPUT_GENERATED_HOOK
316-
BASIC_POST_CONFIG_OUTPUT
317316

318317
# Finally output some useful information to the user
319318
HELP_PRINT_SUMMARY_AND_WARNINGS
320319
CUSTOM_SUMMARY_AND_WARNINGS_HOOK
321320
HELP_REPEAT_WARNINGS
321+
322+
# All output is done. Do the post-config output management.
323+
BASIC_POST_CONFIG_OUTPUT

make/autoconf/jdk-options.m4

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,15 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_LEAK_SANITIZER],
511511
#
512512
AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
513513
[
514+
UTIL_ARG_WITH(NAME: additional-ubsan-checks, TYPE: string,
515+
DEFAULT: [],
516+
DESC: [Customizes the ubsan checks],
517+
OPTIONAL: true)
518+
514519
# GCC reports lots of likely false positives for stringop-truncation and format-overflow.
515520
# Silence them for now.
516-
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment"
521+
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment \
522+
$ADDITIONAL_UBSAN_CHECKS"
517523
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
518524
UBSAN_LDFLAGS="$UBSAN_CHECKS"
519525
UTIL_ARG_ENABLE(NAME: ubsan, DEFAULT: false, RESULT: UBSAN_ENABLED,

make/autoconf/lib-alsa.m4

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,25 @@ AC_DEFUN_ONCE([LIB_SETUP_ALSA],
7070
PKG_CHECK_MODULES(ALSA, alsa, [ALSA_FOUND=yes], [ALSA_FOUND=no])
7171
fi
7272
fi
73+
if test "x$ALSA_FOUND" = xno; then
74+
# If we have sysroot set, and no explicit library location is set,
75+
# look at known locations in sysroot.
76+
if test "x$SYSROOT" != "x" && test "x${with_alsa_lib}" == x; then
77+
if test -f "$SYSROOT/usr/lib64/libasound.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
78+
ALSA_LIBS="-L$SYSROOT/usr/lib64 -lasound"
79+
ALSA_FOUND=yes
80+
elif test -f "$SYSROOT/usr/lib/libasound.so"; then
81+
ALSA_LIBS="-L$SYSROOT/usr/lib -lasound"
82+
ALSA_FOUND=yes
83+
elif test -f "$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI/libasound.so"; then
84+
ALSA_LIBS="-L$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI -lasound"
85+
ALSA_FOUND=yes
86+
elif test -f "$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU_AUTOCONF-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI/libasound.so"; then
87+
ALSA_LIBS="-L$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU_AUTOCONF-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI -lasound"
88+
ALSA_FOUND=yes
89+
fi
90+
fi
91+
fi
7392
if test "x$ALSA_FOUND" = xno; then
7493
AC_CHECK_HEADERS([alsa/asoundlib.h],
7594
[

make/autoconf/lib-x11.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
7171
elif test -f "$SYSROOT/usr/lib/libX11.so"; then
7272
x_libraries="$SYSROOT/usr/lib"
7373
elif test -f "$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI/libX11.so"; then
74-
x_libraries="$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI/libX11.so"
74+
x_libraries="$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI"
7575
elif test -f "$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU_AUTOCONF-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI/libX11.so"; then
76-
x_libraries="$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU_AUTOCONF-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI/libX11.so"
76+
x_libraries="$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU_AUTOCONF-$OPENJDK_TARGET_OS-$OPENJDK_TARGET_ABI"
7777
fi
7878
fi
7979
fi

0 commit comments

Comments
 (0)