Skip to content

Commit 98938c0

Browse files
authored
Merge pull request #2128 from SAP/pr-jdk-26+27
Merge to tag jdk-26+27
2 parents 645f3ca + 7473be3 commit 98938c0

File tree

612 files changed

+16827
-10187
lines changed

Some content is hidden

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

612 files changed

+16827
-10187
lines changed

.github/workflows/build-alpine-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ on:
5959
jobs:
6060
build-linux:
6161
name: build
62-
runs-on: ubuntu-22.04
62+
runs-on: ubuntu-24.04
6363
container:
6464
image: alpine:3.20
6565

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ on:
4848
jobs:
4949
build-cross-compile:
5050
name: build
51-
runs-on: ubuntu-22.04
51+
runs-on: ubuntu-24.04
5252

5353
strategy:
5454
fail-fast: false

.github/workflows/build-linux.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ on:
7575
jobs:
7676
build-linux:
7777
name: build
78-
runs-on: ubuntu-22.04
78+
runs-on: ubuntu-24.04
7979

8080
strategy:
8181
fail-fast: false
@@ -115,9 +115,21 @@ jobs:
115115
if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
116116
sudo dpkg --add-architecture ${{ inputs.apt-architecture }}
117117
fi
118-
sudo apt-get update
119-
sudo apt-get install --only-upgrade apt
120-
sudo apt-get install gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
118+
sudo apt update
119+
sudo apt install --only-upgrade apt
120+
sudo apt install \
121+
gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} \
122+
g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} \
123+
libasound2-dev${{ steps.arch.outputs.suffix }} \
124+
libcups2-dev${{ steps.arch.outputs.suffix }} \
125+
libfontconfig1-dev${{ steps.arch.outputs.suffix }} \
126+
libx11-dev${{ steps.arch.outputs.suffix }} \
127+
libxext-dev${{ steps.arch.outputs.suffix }} \
128+
libxrandr-dev${{ steps.arch.outputs.suffix }} \
129+
libxrender-dev${{ steps.arch.outputs.suffix }} \
130+
libxt-dev${{ steps.arch.outputs.suffix }} \
131+
libxtst-dev${{ steps.arch.outputs.suffix }} \
132+
${{ inputs.apt-extra-packages }}
121133
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
122134
123135
# SapMachine 2025-06-11: reduce number of cds/jsa archives

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
name: 'Prepare the run'
6565
# SapMachine 2022-06-23: On 'pull_request' we only want to run GHA if the PR comes from a remote repo. Otherwise we have the run on 'push' already as a check.
6666
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}
67-
runs-on: ubuntu-22.04
67+
runs-on: ubuntu-24.04
6868
env:
6969
# List of platforms to exclude by default
7070
EXCLUDED_PLATFORMS: 'alpine-linux-x64'
@@ -425,7 +425,7 @@ jobs:
425425
with:
426426
platform: linux-x64
427427
bootjdk-platform: linux-x64
428-
runs-on: ubuntu-22.04
428+
runs-on: ubuntu-24.04
429429
dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
430430
debug-suffix: -debug
431431

@@ -439,7 +439,7 @@ jobs:
439439
with:
440440
platform: linux-x64
441441
bootjdk-platform: linux-x64
442-
runs-on: ubuntu-22.04
442+
runs-on: ubuntu-24.04
443443
dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
444444
static-suffix: "-static"
445445

bin/generate-symbol-data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# directory.
3939
# - open a terminal program and run these commands:
4040
# cd "${JDK_CHECKOUT}"/src/jdk.compiler/share/data/symbols
41-
# bash ../../../../../make/scripts/generate-symbol-data.sh "${JDK_N_INSTALL}"
41+
# bash ../../../../../bin/generate-symbol-data.sh "${JDK_N_INSTALL}"
4242
# - this command will generate or update data for "--release N" into the ${JDK_CHECKOUT}/src/jdk.compiler/share/data/symbols
4343
# directory, updating all registration necessary. If the goal was to update the data, and there are no
4444
# new or changed files in the ${JDK_CHECKOUT}/src/jdk.compiler/share/data/symbols directory after running this script,

doc/building.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,11 @@ <h3 id="macos">macOS</h3>
541541
this.</p>
542542
<p>It is recommended that you use at least macOS 14 and Xcode 15.4, but
543543
earlier versions may also work.</p>
544+
<p>Starting with Xcode 26, introduced in macOS 26, the Metal toolchain
545+
no longer comes bundled with Xcode, so it needs to be installed
546+
separately. This can either be done via the Xcode's Settings/Components
547+
UI, or in the command line calling
548+
<code>xcodebuild -downloadComponent metalToolchain</code>.</p>
544549
<p>The standard macOS environment contains the basic tooling needed to
545550
build, but for external libraries a package manager is recommended. The
546551
JDK uses <a href="https://brew.sh/">homebrew</a> in the examples, but

doc/building.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ on some strategies to deal with this.
352352
It is recommended that you use at least macOS 14 and Xcode 15.4, but
353353
earlier versions may also work.
354354

355+
Starting with Xcode 26, introduced in macOS 26, the Metal toolchain no longer
356+
comes bundled with Xcode, so it needs to be installed separately. This can
357+
either be done via the Xcode's Settings/Components UI, or in the command line
358+
calling `xcodebuild -downloadComponent metalToolchain`.
359+
355360
The standard macOS environment contains the basic tooling needed to build, but
356361
for external libraries a package manager is recommended. The JDK uses
357362
[homebrew](https://brew.sh/) in the examples, but feel free to use whatever

doc/hotspot-style.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,8 +1037,8 @@ <h3 id="variable-templates-and-inline-variables">Variable Templates and
10371037
<p>Some of the approaches used in HotSpot to avoid dynamic
10381038
initialization include:</p>
10391039
<ul>
1040-
<li><p>Use the <code>Deferred&lt;T&gt;</code> class template. Add a call
1041-
to its initialization function at an appropriate place during VM
1040+
<li><p>Use the <code>DeferredStatic&lt;T&gt;</code> class template. Add
1041+
a call to its initialization function at an appropriate place during VM
10421042
initialization. The underlying object is never destroyed.</p></li>
10431043
<li><p>For objects of class type, use a variable whose value is a
10441044
pointer to the class, initialized to <code>nullptr</code>. Provide an

doc/hotspot-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ destructors at exit can lead to problems.
954954
Some of the approaches used in HotSpot to avoid dynamic initialization
955955
include:
956956

957-
* Use the `Deferred<T>` class template. Add a call to its initialization
957+
* Use the `DeferredStatic<T>` class template. Add a call to its initialization
958958
function at an appropriate place during VM initialization. The underlying
959959
object is never destroyed.
960960

doc/starting-next-release.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ <h3 id="test-files"><code>test</code> files</h3>
119119
and
120120
<code>test/langtools/tools/javac/preview/classReaderTest/Client.preview.out</code>:
121121
update expected messages for preview errors and warnings</li>
122+
<li><code>test/langtools/tools/javac/versions/Versions.java</code>: add
123+
new source version to the set of valid sources and add new enum constant
124+
for the new class file version.</li>
122125
</ul>
123126
</body>
124127
</html>

0 commit comments

Comments
 (0)