Skip to content

Commit ad0e7f3

Browse files
committed
Merge branch 'master' into JDK-8249824
2 parents 2bff4a3 + 0ad919c commit ad0e7f3

File tree

10,936 files changed

+425322
-430189
lines changed

Some content is hidden

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

10,936 files changed

+425322
-430189
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-gtest/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ runs:
4949
- name: 'Export path to where GTest is installed'
5050
id: path-name
5151
run: |
52-
# Export the path
53-
echo 'path=gtest' >> $GITHUB_OUTPUT
52+
# Export the absolute path
53+
echo "path=`pwd`/gtest" >> $GITHUB_OUTPUT
5454
shell: bash

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ runs:
4949
- name: 'Export path to where JTReg is installed'
5050
id: path-name
5151
run: |
52-
# Export the path
53-
echo 'path=jtreg/installed' >> $GITHUB_OUTPUT
52+
# Export the absolute path
53+
echo "path=`pwd`/jtreg/installed" >> $GITHUB_OUTPUT
5454
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/setup-msys2@v2.22.0
33+
id: msys2
34+
uses: msys2/setup-msys2@v2.28.0
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: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ inputs:
3232
debug-suffix:
3333
description: 'File name suffix denoting debug level, possibly empty'
3434
required: false
35+
bundle-suffix:
36+
description: 'Bundle name suffix, possibly empty'
37+
required: false
38+
static-suffix:
39+
description: 'Static JDK bundle name suffix, possibly empty'
40+
required: false
3541

3642
runs:
3743
using: composite
@@ -43,6 +49,8 @@ runs:
4349
# Rename bundles to consistent names
4450
jdk_bundle_zip="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
4551
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)"
4654
symbols_bundle="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}-symbols.tar.gz 2> /dev/null || true)"
4755
tests_bundle="$(ls build/*/bundles/jdk-*_bin-tests${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
4856
static_libs_bundle="$(ls build/*/bundles/jdk-*_bin-static-libs${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
@@ -55,6 +63,12 @@ runs:
5563
if [[ "$jdk_bundle_tar_gz" != "" ]]; then
5664
mv "$jdk_bundle_tar_gz" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
5765
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
5872
if [[ "$symbols_bundle" != "" ]]; then
5973
mv "$symbols_bundle" "bundles/symbols-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
6074
fi
@@ -65,7 +79,7 @@ runs:
6579
mv "$static_libs_bundle" "bundles/static-libs-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
6680
fi
6781
68-
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
6983
echo 'bundles-found=true' >> $GITHUB_OUTPUT
7084
else
7185
echo 'bundles-found=false' >> $GITHUB_OUTPUT
@@ -75,7 +89,7 @@ runs:
7589
- name: 'Upload bundles artifact'
7690
uses: actions/upload-artifact@v4
7791
with:
78-
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
92+
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}${{ inputs.bundle-suffix }}
7993
path: bundles
80-
retention-days: 1
94+
retention-days: 5
8195
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 }}

0 commit comments

Comments
 (0)