Skip to content

Commit 15c5961

Browse files
committed
MERGE(*): import from KonaJDK 21.0.5
2 parents f994554 + 6c89eec commit 15c5961

File tree

1,006 files changed

+31610
-12094
lines changed

Some content is hidden

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

1,006 files changed

+31610
-12094
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ on:
3535
platforms:
3636
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
3737
required: true
38-
default: 'linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
38+
default: 'linux-x64, linux-x86-hs, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
3939
configure-arguments:
4040
description: 'Additional configure arguments'
4141
required: false
@@ -58,7 +58,7 @@ jobs:
5858
runs-on: ubuntu-22.04
5959
outputs:
6060
linux-x64: ${{ steps.include.outputs.linux-x64 }}
61-
linux-x86: ${{ steps.include.outputs.linux-x86 }}
61+
linux-x86-hs: ${{ steps.include.outputs.linux-x86-hs }}
6262
linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
6363
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
6464
macos-x64: ${{ steps.include.outputs.macos-x64 }}
@@ -110,7 +110,7 @@ jobs:
110110
}
111111
112112
echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
113-
echo "linux-x86=$(check_platform linux-x86 linux x86)" >> $GITHUB_OUTPUT
113+
echo "linux-x86-hs=$(check_platform linux-x86-hs linux x86)" >> $GITHUB_OUTPUT
114114
echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
115115
echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
116116
echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
@@ -134,12 +134,13 @@ jobs:
134134
make-arguments: ${{ github.event.inputs.make-arguments }}
135135
if: needs.select.outputs.linux-x64 == 'true'
136136

137-
build-linux-x86:
138-
name: linux-x86
137+
build-linux-x86-hs:
138+
name: linux-x86-hs
139139
needs: select
140140
uses: ./.github/workflows/build-linux.yml
141141
with:
142142
platform: linux-x86
143+
make-target: 'hotspot'
143144
gcc-major-version: '10'
144145
gcc-package-suffix: '-multilib'
145146
apt-architecture: 'i386'
@@ -149,7 +150,7 @@ jobs:
149150
extra-conf-options: '--with-target-bits=32'
150151
configure-arguments: ${{ github.event.inputs.configure-arguments }}
151152
make-arguments: ${{ github.event.inputs.make-arguments }}
152-
if: needs.select.outputs.linux-x86 == 'true'
153+
if: needs.select.outputs.linux-x86-hs == 'true'
153154

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

302-
test-linux-x86:
303-
name: linux-x86
304-
needs:
305-
- build-linux-x86
306-
uses: ./.github/workflows/test.yml
307-
with:
308-
platform: linux-x86
309-
bootjdk-platform: linux-x64
310-
runs-on: ubuntu-22.04
311-
312303
test-macos-x64:
313304
name: macos-x64
314305
needs:
@@ -346,7 +337,7 @@ jobs:
346337
if: always()
347338
needs:
348339
- build-linux-x64
349-
- build-linux-x86
340+
- build-linux-x86-hs
350341
- build-linux-x64-hs-nopch
351342
- build-linux-x64-hs-zero
352343
- build-linux-x64-hs-minimal
@@ -357,31 +348,27 @@ jobs:
357348
- build-windows-x64
358349
- build-windows-aarch64
359350
- test-linux-x64
360-
- test-linux-x86
361351
- test-macos-x64
362352
- test-windows-x64
363353

364354
steps:
365-
# Hack to get hold of the api environment variables that are only defined for actions
366-
- name: 'Get API configuration'
367-
id: api
368-
uses: actions/github-script@v7
369-
with:
370-
script: 'return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'
371-
372355
- name: 'Remove bundle artifacts'
373356
run: |
374357
# Find and remove all bundle artifacts
375-
ALL_ARTIFACT_URLS="$(curl -s \
376-
-H 'Accept: application/json;api-version=6.0-preview' \
377-
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
378-
'${{ fromJson(steps.api.outputs.result).url }}_apis/pipelines/workflows/${{ github.run_id }}/artifacts?api-version=6.0-preview')"
379-
BUNDLE_ARTIFACT_URLS="$(echo "$ALL_ARTIFACT_URLS" | jq -r -c '.value | map(select(.name|startswith("bundles-"))) | .[].url')"
380-
for url in $BUNDLE_ARTIFACT_URLS; do
381-
echo "Removing $url"
382-
curl -s \
383-
-H 'Accept: application/json;api-version=6.0-preview' \
384-
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
385-
-X DELETE "$url" \
358+
# See: https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28
359+
ALL_ARTIFACT_IDS="$(curl -sL \
360+
-H 'Accept: application/vnd.github+json' \
361+
-H 'Authorization: Bearer ${{ github.token }}' \
362+
-H 'X-GitHub-Api-Version: 2022-11-28' \
363+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts')"
364+
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
365+
for id in $BUNDLE_ARTIFACT_IDS; do
366+
echo "Removing $id"
367+
curl -sL \
368+
-X DELETE \
369+
-H 'Accept: application/vnd.github+json' \
370+
-H 'Authorization: Bearer ${{ github.token }}' \
371+
-H 'X-GitHub-Api-Version: 2022-11-28' \
372+
"${{ github.api_url }}/repos/${{ github.repository }}/actions/artifacts/$id" \
386373
|| echo "Failed to remove bundle"
387374
done

.jcheck/conf

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

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

910
[repository]
1011
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)

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
@@ -500,9 +500,15 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_LEAK_SANITIZER],
500500
#
501501
AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
502502
[
503+
UTIL_ARG_WITH(NAME: additional-ubsan-checks, TYPE: string,
504+
DEFAULT: [],
505+
DESC: [Customizes the ubsan checks],
506+
OPTIONAL: true)
507+
503508
# GCC reports lots of likely false positives for stringop-truncation and format-overflow.
504509
# Silence them for now.
505-
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment"
510+
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment \
511+
$ADDITIONAL_UBSAN_CHECKS"
506512
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
507513
UBSAN_LDFLAGS="$UBSAN_CHECKS"
508514
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

make/conf/version-numbers.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828

2929
DEFAULT_VERSION_FEATURE=21
3030
DEFAULT_VERSION_INTERIM=0
31-
DEFAULT_VERSION_UPDATE=4
31+
DEFAULT_VERSION_UPDATE=5
3232
DEFAULT_VERSION_PATCH=0
3333
DEFAULT_VERSION_EXTRA1=0
3434
DEFAULT_VERSION_EXTRA2=0
3535
DEFAULT_VERSION_EXTRA3=0
36-
DEFAULT_VERSION_DATE=2024-07-16
36+
DEFAULT_VERSION_DATE=2024-10-15
3737
DEFAULT_VERSION_CLASSFILE_MAJOR=65 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
3838
DEFAULT_VERSION_CLASSFILE_MINOR=0
3939
DEFAULT_VERSION_DOCS_API_SINCE=11

make/data/cldr/common/main/ff_Adlm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
708708
<territory type="BS">𞤄𞤢𞤸𞤢𞤥𞤢𞥄𞤧</territory>
709709
<territory type="BT">𞤄𞤵𞥅𞤼𞤢𞥄𞤲</territory>
710710
<territory type="BV">𞤅𞤵𞤪𞤭𞥅𞤪𞤫 𞤄𞤵𞥅𞤾𞤫𞥅</territory>
711-
<territory type="BW">𞤄𞤮𞤼𞤧𞤵𞤱𞤢𞥄𞤲𞤢</territory>
711+
<territory type="BW">𞤄𞤮𞤼𞤧𞤵𞤱𞤢𞥄𞤲𞤢</territory>
712712
<territory type="BY">𞤄𞤫𞤤𞤢𞤪𞤵𞥅𞤧</territory>
713713
<territory type="BZ">𞤄𞤫𞤤𞤭𞥅𞥁</territory>
714714
<territory type="CA">𞤑𞤢𞤲𞤢𞤣𞤢𞥄</territory>
@@ -8278,7 +8278,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
82788278
<exemplarCity>𞤐𞤵𞥅𞤳</exemplarCity>
82798279
</zone>
82808280
<zone type="America/Scoresbysund">
8281-
<exemplarCity>𞤋𞤼𞥆𞤮𞤳𞤮𞤪𞤼𞤮𞥅𞤪𞤥𞤭𞥅𞤼</exemplarCity>
8281+
<exemplarCity>𞤋𞤼𞥆𞤮𞤳𞤮𞤪𞤼𞤮𞥅𞤪𞤥𞤭𞥅𞤼</exemplarCity>
82828282
</zone>
82838283
<zone type="America/Danmarkshavn">
82848284
<exemplarCity>𞤁𞤢𞥄𞤲𞤥𞤢𞤪𞤳𞥃𞤢𞥄𞤾𞤲</exemplarCity>

make/devkit/createJMHBundle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ rm -f *
4444
fetchJar() {
4545
url="${MAVEN_MIRROR}/$1/$2/$3/$2-$3.jar"
4646
if command -v curl > /dev/null; then
47-
curl -O --fail $url
47+
curl -OL --fail $url
4848
elif command -v wget > /dev/null; then
4949
wget $url
5050
else

make/hotspot/lib/CompileJvm.gmk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,13 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJVM, \
157157
DISABLED_WARNINGS_gcc_ad_$(HOTSPOT_TARGET_CPU_ARCH).cpp := nonnull, \
158158
DISABLED_WARNINGS_gcc_cgroupV1Subsystem_linux.cpp := address, \
159159
DISABLED_WARNINGS_gcc_cgroupV2Subsystem_linux.cpp := address, \
160+
DISABLED_WARNINGS_gcc_handshake.cpp := stringop-overflow, \
160161
DISABLED_WARNINGS_gcc_interp_masm_x86.cpp := uninitialized, \
162+
DISABLED_WARNINGS_gcc_jvmciCodeInstaller.cpp := stringop-overflow, \
163+
DISABLED_WARNINGS_gcc_jvmtiTagMap.cpp := stringop-overflow, \
161164
DISABLED_WARNINGS_gcc_postaloc.cpp := address, \
165+
DISABLED_WARNINGS_gcc_shenandoahLock.cpp := stringop-overflow, \
166+
DISABLED_WARNINGS_gcc_synchronizer.cpp := stringop-overflow, \
162167
DISABLED_WARNINGS_clang := $(DISABLED_WARNINGS_clang), \
163168
DISABLED_WARNINGS_clang_arguments.cpp := missing-field-initializers, \
164169
DISABLED_WARNINGS_clang_codeBuffer.cpp := tautological-undefined-compare, \

0 commit comments

Comments
 (0)