Skip to content

Commit 1d63399

Browse files
Merge in jdk-23.0.2+2 (24.1)
PullRequest: labsjdk-ce/120
2 parents d107ace + 8221010 commit 1d63399

File tree

171 files changed

+12940
-1886
lines changed

Some content is hidden

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

171 files changed

+12940
-1886
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
@@ -36,7 +36,7 @@ on:
3636
platforms:
3737
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
3838
required: true
39-
default: 'linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
39+
default: 'linux-x64, linux-x86-hs, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
4040
configure-arguments:
4141
description: 'Additional configure arguments'
4242
required: false
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: ubuntu-22.04
6060
outputs:
6161
linux-x64: ${{ steps.include.outputs.linux-x64 }}
62-
linux-x86: ${{ steps.include.outputs.linux-x86 }}
62+
linux-x86-hs: ${{ steps.include.outputs.linux-x86-hs }}
6363
linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
6464
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
6565
macos-x64: ${{ steps.include.outputs.macos-x64 }}
@@ -111,7 +111,7 @@ jobs:
111111
}
112112
113113
echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
114-
echo "linux-x86=$(check_platform linux-x86 linux x86)" >> $GITHUB_OUTPUT
114+
echo "linux-x86-hs=$(check_platform linux-x86-hs linux x86)" >> $GITHUB_OUTPUT
115115
echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
116116
echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
117117
echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
@@ -135,12 +135,13 @@ jobs:
135135
make-arguments: ${{ github.event.inputs.make-arguments }}
136136
if: needs.select.outputs.linux-x64 == 'true'
137137

138-
build-linux-x86:
139-
name: linux-x86
138+
build-linux-x86-hs:
139+
name: linux-x86-hs
140140
needs: select
141141
uses: ./.github/workflows/build-linux.yml
142142
with:
143143
platform: linux-x86
144+
make-target: 'hotspot'
144145
gcc-major-version: '10'
145146
gcc-package-suffix: '-multilib'
146147
apt-architecture: 'i386'
@@ -150,7 +151,7 @@ jobs:
150151
extra-conf-options: '--with-target-bits=32 --enable-fallback-linker --enable-libffi-bundling'
151152
configure-arguments: ${{ github.event.inputs.configure-arguments }}
152153
make-arguments: ${{ github.event.inputs.make-arguments }}
153-
if: needs.select.outputs.linux-x86 == 'true'
154+
if: needs.select.outputs.linux-x86-hs == 'true'
154155

155156
build-linux-x64-hs-nopch:
156157
name: linux-x64-hs-nopch
@@ -300,16 +301,6 @@ jobs:
300301
bootjdk-platform: linux-x64
301302
runs-on: ubuntu-22.04
302303

303-
test-linux-x86:
304-
name: linux-x86
305-
needs:
306-
- build-linux-x86
307-
uses: ./.github/workflows/test.yml
308-
with:
309-
platform: linux-x86
310-
bootjdk-platform: linux-x64
311-
runs-on: ubuntu-22.04
312-
313304
test-macos-x64:
314305
name: macos-x64
315306
needs:
@@ -347,7 +338,7 @@ jobs:
347338
if: always()
348339
needs:
349340
- build-linux-x64
350-
- build-linux-x86
341+
- build-linux-x86-hs
351342
- build-linux-x64-hs-nopch
352343
- build-linux-x64-hs-zero
353344
- build-linux-x64-hs-minimal
@@ -358,31 +349,28 @@ jobs:
358349
- build-windows-x64
359350
- build-windows-aarch64
360351
- test-linux-x64
361-
- test-linux-x86
362352
- test-macos-x64
353+
- test-macos-aarch64
363354
- test-windows-x64
364355

365356
steps:
366-
# Hack to get hold of the api environment variables that are only defined for actions
367-
- name: 'Get API configuration'
368-
id: api
369-
uses: actions/github-script@v7
370-
with:
371-
script: 'return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'
372-
373357
- name: 'Remove bundle artifacts'
374358
run: |
375359
# Find and remove all bundle artifacts
376-
ALL_ARTIFACT_URLS="$(curl -s \
377-
-H 'Accept: application/json;api-version=6.0-preview' \
378-
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
379-
'${{ fromJson(steps.api.outputs.result).url }}_apis/pipelines/workflows/${{ github.run_id }}/artifacts?api-version=6.0-preview')"
380-
BUNDLE_ARTIFACT_URLS="$(echo "$ALL_ARTIFACT_URLS" | jq -r -c '.value | map(select(.name|startswith("bundles-"))) | .[].url')"
381-
for url in $BUNDLE_ARTIFACT_URLS; do
382-
echo "Removing $url"
383-
curl -s \
384-
-H 'Accept: application/json;api-version=6.0-preview' \
385-
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
386-
-X DELETE "$url" \
360+
# See: https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28
361+
ALL_ARTIFACT_IDS="$(curl -sL \
362+
-H 'Accept: application/vnd.github+json' \
363+
-H 'Authorization: Bearer ${{ github.token }}' \
364+
-H 'X-GitHub-Api-Version: 2022-11-28' \
365+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
366+
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
367+
for id in $BUNDLE_ARTIFACT_IDS; do
368+
echo "Removing $id"
369+
curl -sL \
370+
-X DELETE \
371+
-H 'Accept: application/vnd.github+json' \
372+
-H 'Authorization: Bearer ${{ github.token }}' \
373+
-H 'X-GitHub-Api-Version: 2022-11-28' \
374+
"${{ github.api_url }}/repos/${{ github.repository }}/actions/artifacts/$id" \
387375
|| echo "Failed to remove bundle"
388376
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
@@ -496,9 +496,15 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_LEAK_SANITIZER],
496496
#
497497
AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
498498
[
499+
UTIL_ARG_WITH(NAME: additional-ubsan-checks, TYPE: string,
500+
DEFAULT: [],
501+
DESC: [Customizes the ubsan checks],
502+
OPTIONAL: true)
503+
499504
# GCC reports lots of likely false positives for stringop-truncation and format-overflow.
500505
# Silence them for now.
501-
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment"
506+
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment \
507+
$ADDITIONAL_UBSAN_CHECKS"
502508
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
503509
UBSAN_LDFLAGS="$UBSAN_CHECKS"
504510
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)