Skip to content

Commit 7b30001

Browse files
authored
Merge pull request #1856 from SAP/pr-jdk-21.0.6+1
Merge to tag jdk-21.0.6+1
2 parents a1e75fa + 7dc0f7a commit 7b30001

File tree

302 files changed

+8489
-3905
lines changed

Some content is hidden

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

302 files changed

+8489
-3905
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ jobs:
358358
- build-windows-aarch64
359359
- test-linux-x64
360360
- test-macos-x64
361+
- test-macos-aarch64
361362
- test-windows-x64
362363

363364
steps:
@@ -369,7 +370,7 @@ jobs:
369370
-H 'Accept: application/vnd.github+json' \
370371
-H 'Authorization: Bearer ${{ github.token }}' \
371372
-H 'X-GitHub-Api-Version: 2022-11-28' \
372-
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts')"
373+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
373374
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
374375
for id in $BUNDLE_ARTIFACT_IDS; do
375376
echo "Removing $id"

.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=21.0.5
4+
version=21.0.6
55

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

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
@@ -569,10 +569,9 @@ <h3 id="clang">clang</h3>
569569
<code>--with-toolchain-type=clang</code>.</p>
570570
<h3 id="apple-xcode">Apple Xcode</h3>
571571
<p>The oldest supported version of Xcode is 8.</p>
572-
<p>You will need the Xcode command line developer tools to be able to
573-
build the JDK. (Actually, <em>only</em> the command line tools are
574-
needed, not the IDE.) The simplest way to install these is to run:</p>
575-
<pre><code>xcode-select --install</code></pre>
572+
<p>You will need to download Xcode either from the App Store or specific
573+
versions can be easily located via the <a
574+
href="https://xcodereleases.com">Xcode Releases</a> website.</p>
576575
<p>When updating Xcode, it is advisable to keep an older version for
577576
building the JDK. To use a specific version of Xcode you have multiple
578577
options:</p>

doc/building.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,9 @@ To use clang instead of gcc on Linux, use `--with-toolchain-type=clang`.
366366

367367
The oldest supported version of Xcode is 8.
368368

369-
You will need the Xcode command line developer tools to be able to build
370-
the JDK. (Actually, *only* the command line tools are needed, not the IDE.)
371-
The simplest way to install these is to run:
372-
```
373-
xcode-select --install
374-
```
369+
You will need to download Xcode either from the App Store or specific versions
370+
can be easily located via the [Xcode Releases](https://xcodereleases.com)
371+
website.
375372

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

make/autoconf/toolchain.m4

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,11 @@ AC_DEFUN([TOOLCHAIN_EXTRACT_COMPILER_VERSION],
449449
# Copyright (C) 2013 Free Software Foundation, Inc.
450450
# This is free software; see the source for copying conditions. There is NO
451451
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
452+
# or look like
453+
# gcc (GCC) 10.2.1 20200825 (Alibaba 10.2.1-3.8 2.32)
454+
# Copyright (C) 2020 Free Software Foundation, Inc.
455+
# This is free software; see the source for copying conditions. There is NO
456+
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
452457
COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1`
453458
# Check that this is likely to be GCC.
454459
$ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null
@@ -462,7 +467,8 @@ AC_DEFUN([TOOLCHAIN_EXTRACT_COMPILER_VERSION],
462467
COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \
463468
$SED -e 's/ *Copyright .*//'`
464469
COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
465-
$SED -e 's/^.* \(@<:@1-9@:>@<:@0-9@:>@*\.@<:@0-9.@:>@*\)@<:@^0-9.@:>@.*$/\1/'`
470+
$AWK -F ')' '{print [$]2}' | \
471+
$AWK '{print [$]1}'`
466472
elif test "x$TOOLCHAIN_TYPE" = xclang; then
467473
# clang --version output typically looks like
468474
# Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

make/conf/version-numbers.conf

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

2929
DEFAULT_VERSION_FEATURE=21
3030
DEFAULT_VERSION_INTERIM=0
31-
DEFAULT_VERSION_UPDATE=5
31+
DEFAULT_VERSION_UPDATE=6
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-10-15
36+
DEFAULT_VERSION_DATE=2025-01-21
3737
DEFAULT_VERSION_CLASSFILE_MAJOR=65 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
3838
DEFAULT_VERSION_CLASSFILE_MINOR=0
3939
DEFAULT_VERSION_DOCS_API_SINCE=11
4040
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="20 21"
4141
DEFAULT_JDK_SOURCE_TARGET_VERSION=21
42-
DEFAULT_PROMOTED_VERSION_PRE=
42+
DEFAULT_PROMOTED_VERSION_PRE=ea

make/jdk/src/classes/build/tools/tzdb/TzdbZoneRulesProvider.java

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2024, 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
@@ -364,33 +364,35 @@ int parseYear(String year, int defaultYear) {
364364
}
365365

366366
Month parseMonth(String mon) {
367-
switch (mon) {
368-
case "Jan": return Month.JANUARY;
369-
case "Feb": return Month.FEBRUARY;
370-
case "Mar": return Month.MARCH;
371-
case "Apr": return Month.APRIL;
372-
case "May": return Month.MAY;
373-
case "Jun": return Month.JUNE;
374-
case "Jul": return Month.JULY;
375-
case "Aug": return Month.AUGUST;
376-
case "Sep": return Month.SEPTEMBER;
377-
case "Oct": return Month.OCTOBER;
378-
case "Nov": return Month.NOVEMBER;
379-
case "Dec": return Month.DECEMBER;
380-
}
367+
int len = mon.length();
368+
369+
if (mon.regionMatches(true, 0, "January", 0, len)) return Month.JANUARY;
370+
if (mon.regionMatches(true, 0, "February", 0, len)) return Month.FEBRUARY;
371+
if (mon.regionMatches(true, 0, "March", 0, len)) return Month.MARCH;
372+
if (mon.regionMatches(true, 0, "April", 0, len)) return Month.APRIL;
373+
if (mon.regionMatches(true, 0, "May", 0, len)) return Month.MAY;
374+
if (mon.regionMatches(true, 0, "June", 0, len)) return Month.JUNE;
375+
if (mon.regionMatches(true, 0, "July", 0, len)) return Month.JULY;
376+
if (mon.regionMatches(true, 0, "August", 0, len)) return Month.AUGUST;
377+
if (mon.regionMatches(true, 0, "September", 0, len)) return Month.SEPTEMBER;
378+
if (mon.regionMatches(true, 0, "October", 0, len)) return Month.OCTOBER;
379+
if (mon.regionMatches(true, 0, "November", 0, len)) return Month.NOVEMBER;
380+
if (mon.regionMatches(true, 0, "December", 0, len)) return Month.DECEMBER;
381+
381382
throw new IllegalArgumentException("Unknown month: " + mon);
382383
}
383384

384385
DayOfWeek parseDayOfWeek(String dow) {
385-
switch (dow) {
386-
case "Mon": return DayOfWeek.MONDAY;
387-
case "Tue": return DayOfWeek.TUESDAY;
388-
case "Wed": return DayOfWeek.WEDNESDAY;
389-
case "Thu": return DayOfWeek.THURSDAY;
390-
case "Fri": return DayOfWeek.FRIDAY;
391-
case "Sat": return DayOfWeek.SATURDAY;
392-
case "Sun": return DayOfWeek.SUNDAY;
393-
}
386+
int len = dow.length();
387+
388+
if (dow.regionMatches(true, 0, "Monday", 0, len)) return DayOfWeek.MONDAY;
389+
if (dow.regionMatches(true, 0, "Tuesday", 0, len)) return DayOfWeek.TUESDAY;
390+
if (dow.regionMatches(true, 0, "Wednesday", 0, len)) return DayOfWeek.WEDNESDAY;
391+
if (dow.regionMatches(true, 0, "Thursday", 0, len)) return DayOfWeek.THURSDAY;
392+
if (dow.regionMatches(true, 0, "Friday", 0, len)) return DayOfWeek.FRIDAY;
393+
if (dow.regionMatches(true, 0, "Saturday", 0, len)) return DayOfWeek.SATURDAY;
394+
if (dow.regionMatches(true, 0, "Sunday", 0, len)) return DayOfWeek.SUNDAY;
395+
394396
throw new IllegalArgumentException("Unknown day-of-week: " + dow);
395397
}
396398

make/test/JtregNativeHotspot.gmk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ BUILD_HOTSPOT_JTREG_EXECUTABLES_LIBS_exesigtest := -ljvm
870870

871871
ifeq ($(call isTargetOs, windows), true)
872872
BUILD_HOTSPOT_JTREG_EXECUTABLES_CFLAGS_exeFPRegs := -MT
873-
BUILD_HOTSPOT_JTREG_EXCLUDE += exesigtest.c libterminatedThread.c libTestJNI.c libCompleteExit.c libMonitorWithDeadObjectTest.c libTestPsig.c libnativeStack.c exeGetCreatedJavaVMs.c
873+
BUILD_HOTSPOT_JTREG_EXCLUDE += exesigtest.c libterminatedThread.c libTestJNI.c libCompleteExit.c libMonitorWithDeadObjectTest.c libTestPsig.c libnativeStack.c exeGetCreatedJavaVMs.c libTestUnloadedClass.cpp
874874
BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_libatExit := jvm.lib
875875
BUILD_HOTSPOT_JTREG_EXECUTABLES_LIBS_exedaemonDestroy := jvm.lib
876876
else
@@ -1513,9 +1513,10 @@ else
15131513
BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_libCompleteExit += -lpthread
15141514
BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_libMonitorWithDeadObjectTest += -lpthread
15151515
BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_libnativeStack += -lpthread
1516+
BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_libTestUnloadedClass += -lpthread
15161517
BUILD_HOTSPOT_JTREG_EXECUTABLES_LIBS_exeGetCreatedJavaVMs := -ljvm -lpthread
15171518

1518-
BUILD_HOTSPOT_JTREG_EXCLUDE += libNativeException.c
1519+
BUILD_HOTSPOT_JTREG_EXCLUDE += libNativeException.c exeGetProcessorInfo.c
15191520
endif
15201521

15211522
ifeq ($(ASAN_ENABLED), true)

0 commit comments

Comments
 (0)