Skip to content

Commit 8b1efdb

Browse files
committed
Merge branch 'lworld' of https://github.com/openjdk/valhalla into merge_lworld2
2 parents 50897b2 + cccb501 commit 8b1efdb

File tree

11,195 files changed

+452282
-446932
lines changed

Some content is hidden

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

11,195 files changed

+452282
-446932
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
6+
[*.{cpp,hpp,c,h,java,cc,hh,m,mm,S,md,properties,gmk,m4,ac}]
7+
trim_trailing_whitespace = true
8+
9+
[Makefile]
10+
trim_trailing_whitespace = true
11+
12+
[src/hotspot/**.{cpp,hpp,h}]
13+
indent_style = space
14+
indent_size = 2

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* -text
2+
* encoding=utf-8
23
*.java diff=java
34
*.c diff=cpp
45
*.h diff=cpp

.github/actions/build-jtreg/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ runs:
6565
with:
6666
name: bundles-jtreg-${{ steps.version.outputs.value }}
6767
path: jtreg/installed
68-
retention-days: 1
68+
retention-days: 5

.github/actions/do-build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2022, 2025, 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
@@ -42,7 +42,7 @@ runs:
4242
- name: 'Build'
4343
id: build
4444
run: >
45-
make LOG=info ${{ inputs.make-target }}
45+
make -k LOG=info ${{ inputs.make-target }}
4646
|| bash ./.github/scripts/gen-build-failure-report.sh "$GITHUB_STEP_SUMMARY"
4747
shell: bash
4848

.github/actions/get-bundles/action.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ inputs:
3232
debug-suffix:
3333
description: 'File name suffix denoting debug level, possibly empty'
3434
required: false
35+
static-suffix:
36+
description: 'Static bundle file name suffix'
37+
required: false
3538
outputs:
3639
jdk-path:
3740
description: 'Path to the installed JDK bundle'
3841
value: ${{ steps.path-name.outputs.jdk }}
42+
static-jdk-path:
43+
description: 'Path to the installed static JDK bundle'
44+
value: ${{ steps.path-name.outputs.static_jdk }}
3945
symbols-path:
4046
description: 'Path to the installed symbols bundle'
4147
value: ${{ steps.path-name.outputs.symbols }}
@@ -61,6 +67,15 @@ runs:
6167
path: bundles
6268
if: steps.download-bundles.outcome == 'failure'
6369

70+
- name: 'Download static bundles artifact'
71+
id: download-static-bundles
72+
uses: actions/download-artifact@v4
73+
with:
74+
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}
75+
path: bundles
76+
continue-on-error: true
77+
if: ${{ inputs.static-suffix == '-static' }}
78+
6479
- name: 'Unpack bundles'
6580
run: |
6681
if [[ -e bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.zip ]]; then
@@ -75,6 +90,20 @@ runs:
7590
tar -xf bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz -C bundles/jdk
7691
fi
7792
93+
if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
94+
if [[ -e bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.zip ]]; then
95+
echo 'Unpacking static jdk bundle...'
96+
mkdir -p bundles/static-jdk
97+
unzip -q bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.zip -d bundles/static-jdk
98+
fi
99+
100+
if [[ -e bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.tar.gz ]]; then
101+
echo 'Unpacking static jdk bundle...'
102+
mkdir -p bundles/static-jdk
103+
tar -xf bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.tar.gz -C bundles/static-jdk
104+
fi
105+
fi
106+
78107
if [[ -e bundles/symbols-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz ]]; then
79108
echo 'Unpacking symbols bundle...'
80109
mkdir -p bundles/symbols
@@ -106,4 +135,12 @@ runs:
106135
echo "jdk=$jdk_dir" >> $GITHUB_OUTPUT
107136
echo "symbols=$symbols_dir" >> $GITHUB_OUTPUT
108137
echo "tests=$tests_dir" >> $GITHUB_OUTPUT
138+
139+
if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
140+
static_jdk_dir="$GITHUB_WORKSPACE/$(dirname $(find bundles/static-jdk -name bin -type d))"
141+
if [[ '${{ runner.os }}' == 'Windows' ]]; then
142+
static_jdk_dir="$(cygpath $static_jdk_dir)"
143+
fi
144+
echo "static_jdk=$static_jdk_dir" >> $GITHUB_OUTPUT
145+
fi
109146
shell: bash

.github/actions/get-msys2/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ runs:
3030
using: composite
3131
steps:
3232
- name: 'Install MSYS2'
33-
uses: msys2/[email protected]
33+
id: msys2
34+
uses: msys2/[email protected]
3435
with:
3536
install: 'autoconf tar unzip zip make'
3637
path-type: minimal
37-
location: ${{ runner.tool_cache }}/msys2
38+
release: false
3839

3940
# We can't run bash until this is completed, so stick with pwsh
4041
- name: 'Set MSYS2 path'
4142
run: |
42-
# Prepend msys2/msys64/usr/bin to the PATH
43-
echo "$env:RUNNER_TOOL_CACHE/msys2/msys64/usr/bin" >> $env:GITHUB_PATH
43+
echo "${{ steps.msys2.outputs.msys2-location }}/usr/bin" >> $env:GITHUB_PATH
4444
shell: pwsh

.github/actions/upload-bundles/action.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ inputs:
3535
bundle-suffix:
3636
description: 'Bundle name suffix, possibly empty'
3737
required: false
38+
static-suffix:
39+
description: 'Static JDK bundle name suffix, possibly empty'
40+
required: false
3841

3942
runs:
4043
using: composite
@@ -46,6 +49,8 @@ runs:
4649
# Rename bundles to consistent names
4750
jdk_bundle_zip="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
4851
jdk_bundle_tar_gz="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
52+
static_jdk_bundle_zip="$(ls build/*/bundles/static-jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
53+
static_jdk_bundle_tar_gz="$(ls build/*/bundles/static-jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
4954
symbols_bundle="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}-symbols.tar.gz 2> /dev/null || true)"
5055
tests_bundle="$(ls build/*/bundles/jdk-*_bin-tests${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
5156
static_libs_bundle="$(ls build/*/bundles/jdk-*_bin-static-libs${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
@@ -58,6 +63,12 @@ runs:
5863
if [[ "$jdk_bundle_tar_gz" != "" ]]; then
5964
mv "$jdk_bundle_tar_gz" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
6065
fi
66+
if [[ "$static_jdk_bundle_zip" != "" ]]; then
67+
mv "$static_jdk_bundle_zip" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.zip"
68+
fi
69+
if [[ "$static_jdk_bundle_tar_gz" != "" ]]; then
70+
mv "$static_jdk_bundle_tar_gz" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.tar.gz"
71+
fi
6172
if [[ "$symbols_bundle" != "" ]]; then
6273
mv "$symbols_bundle" "bundles/symbols-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
6374
fi
@@ -68,7 +79,7 @@ runs:
6879
mv "$static_libs_bundle" "bundles/static-libs-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
6980
fi
7081
71-
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$symbols_bundle$tests_bundle$static_libs_bundle" != "" ]]; then
82+
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$static_jdk_bundle_zip$static_jdk_bundle_tar_gz$symbols_bundle$tests_bundle$static_libs_bundle" != "" ]]; then
7283
echo 'bundles-found=true' >> $GITHUB_OUTPUT
7384
else
7485
echo 'bundles-found=false' >> $GITHUB_OUTPUT
@@ -78,7 +89,7 @@ runs:
7889
- name: 'Upload bundles artifact'
7990
uses: actions/upload-artifact@v4
8091
with:
81-
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.bundle-suffix }}
92+
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}${{ inputs.bundle-suffix }}
8293
path: bundles
83-
retention-days: 1
94+
retention-days: 5
8495
if: steps.bundles.outputs.bundles-found == 'true'

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ on:
5151
make-arguments:
5252
required: false
5353
type: string
54+
dry-run:
55+
required: false
56+
type: boolean
57+
default: false
5458

5559
jobs:
5660
build-linux:
@@ -104,9 +108,11 @@ jobs:
104108
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
105109
platform: ${{ inputs.platform }}
106110
debug-suffix: '${{ matrix.suffix }}'
111+
if: ${{ inputs.dry-run == false }}
107112

108113
- name: 'Upload bundles'
109114
uses: ./.github/actions/upload-bundles
110115
with:
111116
platform: ${{ inputs.platform }}
112117
debug-suffix: '${{ matrix.suffix }}'
118+
if: ${{ inputs.dry-run == false }}

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ on:
4040
make-arguments:
4141
required: false
4242
type: string
43+
dry-run:
44+
required: false
45+
type: boolean
46+
default: false
4347

4448
jobs:
4549
build-cross-compile:
@@ -60,33 +64,33 @@ jobs:
6064
gnu-arch: aarch64
6165
debian-arch: arm64
6266
debian-repository: https://httpredir.debian.org/debian/
63-
debian-version: bullseye
67+
debian-version: trixie
6468
tolerate-sysroot-errors: false
6569
- target-cpu: arm
6670
gnu-arch: arm
6771
debian-arch: armhf
6872
debian-repository: https://httpredir.debian.org/debian/
69-
debian-version: bullseye
73+
debian-version: trixie
7074
tolerate-sysroot-errors: false
7175
gnu-abi: eabihf
7276
- target-cpu: s390x
7377
gnu-arch: s390x
7478
debian-arch: s390x
7579
debian-repository: https://httpredir.debian.org/debian/
76-
debian-version: bullseye
80+
debian-version: trixie
7781
tolerate-sysroot-errors: false
7882
- target-cpu: ppc64le
7983
gnu-arch: powerpc64le
8084
debian-arch: ppc64el
8185
debian-repository: https://httpredir.debian.org/debian/
82-
debian-version: bullseye
86+
debian-version: trixie
8387
tolerate-sysroot-errors: false
8488
- target-cpu: riscv64
8589
gnu-arch: riscv64
8690
debian-arch: riscv64
8791
debian-repository: https://httpredir.debian.org/debian/
88-
debian-version: sid
89-
tolerate-sysroot-errors: true
92+
debian-version: trixie
93+
tolerate-sysroot-errors: false
9094

9195
steps:
9296
- name: 'Checkout the JDK source'
@@ -189,4 +193,4 @@ jobs:
189193
with:
190194
make-target: 'hotspot ${{ inputs.make-arguments }}'
191195
platform: linux-${{ matrix.target-cpu }}
192-
if: steps.create-sysroot.outcome == 'success' || steps.get-cached-sysroot.outputs.cache-hit == 'true'
196+
if: ((steps.create-sysroot.outcome == 'success' || steps.get-cached-sysroot.outputs.cache-hit == 'true') && inputs.dry-run == false)

.github/workflows/build-linux.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ on:
6161
make-arguments:
6262
required: false
6363
type: string
64+
dry-run:
65+
required: false
66+
type: boolean
67+
default: false
6468
bundle-suffix:
6569
required: false
6670
type: string
71+
static-suffix:
72+
required: false
73+
type: string
6774

6875
jobs:
6976
build-linux:
@@ -136,10 +143,13 @@ jobs:
136143
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
137144
platform: ${{ inputs.platform }}
138145
debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
146+
if: ${{ inputs.dry-run == false }}
139147

140148
- name: 'Upload bundles'
141149
uses: ./.github/actions/upload-bundles
142150
with:
143151
platform: ${{ inputs.platform }}
144152
debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
145153
bundle-suffix: ${{ inputs.bundle-suffix }}
154+
static-suffix: ${{ inputs.static-suffix }}
155+
if: ${{ inputs.dry-run == false }}

0 commit comments

Comments
 (0)