Skip to content

Commit be81ae7

Browse files
committed
Merge branch 'konajdk-21.0.6' into dev21.0.6
2 parents 53be84c + 6866a83 commit be81ae7

File tree

760 files changed

+27451
-9100
lines changed

Some content is hidden

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

760 files changed

+27451
-9100
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ jobs:
131131
id: create-sysroot
132132
run: >
133133
sudo debootstrap
134+
--no-merged-usr
134135
--arch=${{ matrix.debian-arch }}
135136
--verbose
136137
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype-dev,libpng-dev
@@ -151,6 +152,9 @@ jobs:
151152
rm -rf sysroot/usr/{sbin,bin,share}
152153
rm -rf sysroot/usr/lib/{apt,gcc,udev,systemd}
153154
rm -rf sysroot/usr/libexec/gcc
155+
# /{bin,sbin,lib}/ are not symbolic links to /usr/{bin,sbin,lib}/ when debootstrap with --no-merged-usr
156+
rm -rf sysroot/{sbin,bin}
157+
rm -rf sysroot/lib/{udev,systemd}
154158
if: steps.create-sysroot.outcome == 'success' && steps.get-cached-sysroot.outputs.cache-hit != 'true'
155159

156160
- name: 'Remove broken sysroot'

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ jobs:
239239
with:
240240
platform: macos-aarch64
241241
runs-on: 'macos-14'
242-
xcode-toolset-version: '14.3.1'
242+
xcode-toolset-version: '15.4'
243243
configure-arguments: ${{ github.event.inputs.configure-arguments }}
244244
make-arguments: ${{ github.event.inputs.make-arguments }}
245245
if: needs.select.outputs.macos-aarch64 == 'true'
@@ -309,6 +309,7 @@ jobs:
309309
platform: macos-x64
310310
bootjdk-platform: macos-x64
311311
runs-on: macos-13
312+
xcode-toolset-version: '14.3.1'
312313

313314
test-macos-aarch64:
314315
name: macos-aarch64
@@ -319,6 +320,7 @@ jobs:
319320
platform: macos-aarch64
320321
bootjdk-platform: macos-aarch64
321322
runs-on: macos-14
323+
xcode-toolset-version: '15.4'
322324

323325
test-windows-x64:
324326
name: windows-x64
@@ -349,6 +351,7 @@ jobs:
349351
- build-windows-aarch64
350352
- test-linux-x64
351353
- test-macos-x64
354+
- test-macos-aarch64
352355
- test-windows-x64
353356

354357
steps:
@@ -360,7 +363,7 @@ jobs:
360363
-H 'Accept: application/vnd.github+json' \
361364
-H 'Authorization: Bearer ${{ github.token }}' \
362365
-H 'X-GitHub-Api-Version: 2022-11-28' \
363-
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts')"
366+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
364367
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
365368
for id in $BUNDLE_ARTIFACT_IDS; do
366369
echo "Removing $id"

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ on:
3737
runs-on:
3838
required: true
3939
type: string
40+
xcode-toolset-version:
41+
required: false
42+
type: string
4043

4144
env:
4245
# These are needed to make the MSYS2 bash work properly
@@ -147,7 +150,7 @@ jobs:
147150
run: |
148151
# On macOS we need to install some dependencies for testing
149152
brew install make
150-
sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer
153+
sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode-toolset-version }}.app/Contents/Developer
151154
# This will make GNU make available as 'make' and not only as 'gmake'
152155
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH
153156
if: runner.os == 'macOS'

.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:

doc/testing.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ <h1 class="title">Testing the JDK</h1>
7272
<li><a href="#non-us-locale" id="toc-non-us-locale">Non-US
7373
locale</a></li>
7474
<li><a href="#pkcs11-tests" id="toc-pkcs11-tests">PKCS11 Tests</a></li>
75+
<li><a href="#testing-with-alternative-security-providers"
76+
id="toc-testing-with-alternative-security-providers">Testing with
77+
alternative security providers</a></li>
7578
<li><a href="#client-ui-tests" id="toc-client-ui-tests">Client UI
7679
Tests</a></li>
7780
</ul></li>
@@ -589,6 +592,18 @@ <h3 id="pkcs11-tests">PKCS11 Tests</h3>
589592
JTREG=&quot;JAVA_OPTIONS=-Djdk.test.lib.artifacts.nsslib-linux_aarch64=/path/to/NSS-libs&quot;</code></pre>
590593
<p>For more notes about the PKCS11 tests, please refer to
591594
test/jdk/sun/security/pkcs11/README.</p>
595+
<h3 id="testing-with-alternative-security-providers">Testing with
596+
alternative security providers</h3>
597+
<p>Some security tests use a hardcoded provider for
598+
<code>KeyFactory</code>, <code>Cipher</code>,
599+
<code>KeyPairGenerator</code>, <code>KeyGenerator</code>,
600+
<code>AlgorithmParameterGenerator</code>, <code>KeyAgreement</code>,
601+
<code>Mac</code>, <code>MessageDigest</code>, <code>SecureRandom</code>,
602+
<code>Signature</code>, <code>AlgorithmParameters</code>,
603+
<code>Configuration</code>, <code>Policy</code>, or
604+
<code>SecretKeyFactory</code> objects. Specify the
605+
<code>-Dtest.provider.name=NAME</code> property to use a different
606+
provider for the service(s).</p>
592607
<h3 id="client-ui-tests">Client UI Tests</h3>
593608
<h4 id="system-key-shortcuts">System key shortcuts</h4>
594609
<p>Some Client UI tests use key sequences which may be reserved by the

doc/testing.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,15 @@ $ make test TEST="jtreg:sun/security/pkcs11/Secmod/AddTrustedCert.java" \
615615
For more notes about the PKCS11 tests, please refer to
616616
test/jdk/sun/security/pkcs11/README.
617617

618+
### Testing with alternative security providers
619+
620+
Some security tests use a hardcoded provider for `KeyFactory`, `Cipher`,
621+
`KeyPairGenerator`, `KeyGenerator`, `AlgorithmParameterGenerator`,
622+
`KeyAgreement`, `Mac`, `MessageDigest`, `SecureRandom`, `Signature`,
623+
`AlgorithmParameters`, `Configuration`, `Policy`, or `SecretKeyFactory` objects.
624+
Specify the `-Dtest.provider.name=NAME` property to use a different provider for
625+
the service(s).
626+
618627
### Client UI Tests
619628

620629
#### System key shortcuts

make/RunTests.gmk

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 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
@@ -743,8 +743,6 @@ define SetupRunJtregTestBody
743743
# we may end up with a lot of JVM's
744744
$1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $(AWK) 'BEGIN { print 25 / $$($1_JTREG_JOBS); }')
745745

746-
JTREG_TIMEOUT_FACTOR ?= 4
747-
748746
JTREG_VERBOSE ?= fail,error,summary
749747
JTREG_RETAIN ?= fail,error
750748
JTREG_TEST_THREAD_FACTORY ?=
@@ -832,6 +830,24 @@ define SetupRunJtregTestBody
832830
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$($1_JTREG_PROBLEM_LIST))
833831
endif
834832

833+
JTREG_ALL_OPTIONS := $$(JTREG_JAVA_OPTIONS) $$(JTREG_VM_OPTIONS)
834+
835+
JTREG_AUTO_PROBLEM_LISTS :=
836+
JTREG_AUTO_TIMEOUT_FACTOR := 4
837+
838+
ifneq ($$(findstring -Xcomp, $$(JTREG_ALL_OPTIONS)), )
839+
JTREG_AUTO_PROBLEM_LISTS += ProblemList-Xcomp.txt
840+
JTREG_AUTO_TIMEOUT_FACTOR := 10
841+
endif
842+
843+
ifneq ($$(findstring -XX:+UseZGC, $$(JTREG_ALL_OPTIONS)), )
844+
ifneq ($$(findstring -XX:-ZGenerational, $$(JTREG_ALL_OPTIONS)), )
845+
JTREG_AUTO_PROBLEM_LISTS += ProblemList-zgc.txt
846+
else
847+
JTREG_AUTO_PROBLEM_LISTS += ProblemList-generational-zgc.txt
848+
endif
849+
endif
850+
835851
ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
836852
# Accept both absolute paths as well as relative to the current test root.
837853
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \
@@ -863,6 +879,18 @@ define SetupRunJtregTestBody
863879

864880
$$(eval $$(call SetupRunJtregTestCustom, $1))
865881

882+
# SetupRunJtregTestCustom might also adjust JTREG_AUTO_ variables
883+
# so set the final results after setting values from custom setup
884+
ifneq ($$(JTREG_AUTO_PROBLEM_LISTS), )
885+
# Accept both absolute paths as well as relative to the current test root.
886+
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \
887+
$$(JTREG_AUTO_PROBLEM_LISTS) \
888+
$$(addprefix $$($1_TEST_ROOT)/, $$(JTREG_AUTO_PROBLEM_LISTS)) \
889+
))
890+
endif
891+
892+
JTREG_TIMEOUT_FACTOR ?= $$(JTREG_AUTO_TIMEOUT_FACTOR)
893+
866894
clean-outputdirs-$1:
867895
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
868896
$$(RM) -r $$($1_TEST_RESULTS_DIR)

0 commit comments

Comments
 (0)