Skip to content

Commit 779947c

Browse files
Merge branch 'master' into 8311530-depr-jsobject
2 parents 2f25b8a + 8635642 commit 779947c

File tree

414 files changed

+10014
-3650
lines changed

Some content is hidden

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

414 files changed

+10014
-3650
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636
platforms:
3737
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
3838
required: true
39-
default: 'linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
39+
default: 'linux-x64, linux-x86-hs, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
4040
configure-arguments:
4141
description: 'Additional configure arguments'
4242
required: false
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: ubuntu-22.04
6060
outputs:
6161
linux-x64: ${{ steps.include.outputs.linux-x64 }}
62-
linux-x86: ${{ steps.include.outputs.linux-x86 }}
62+
linux-x86-hs: ${{ steps.include.outputs.linux-x86-hs }}
6363
linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
6464
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
6565
macos-x64: ${{ steps.include.outputs.macos-x64 }}
@@ -111,7 +111,7 @@ jobs:
111111
}
112112
113113
echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
114-
echo "linux-x86=$(check_platform linux-x86 linux x86)" >> $GITHUB_OUTPUT
114+
echo "linux-x86-hs=$(check_platform linux-x86-hs linux x86)" >> $GITHUB_OUTPUT
115115
echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
116116
echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
117117
echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
@@ -135,12 +135,13 @@ jobs:
135135
make-arguments: ${{ github.event.inputs.make-arguments }}
136136
if: needs.select.outputs.linux-x64 == 'true'
137137

138-
build-linux-x86:
139-
name: linux-x86
138+
build-linux-x86-hs:
139+
name: linux-x86-hs
140140
needs: select
141141
uses: ./.github/workflows/build-linux.yml
142142
with:
143143
platform: linux-x86
144+
make-target: 'hotspot'
144145
gcc-major-version: '10'
145146
gcc-package-suffix: '-multilib'
146147
apt-architecture: 'i386'
@@ -150,7 +151,7 @@ jobs:
150151
extra-conf-options: '--with-target-bits=32 --enable-fallback-linker --enable-libffi-bundling'
151152
configure-arguments: ${{ github.event.inputs.configure-arguments }}
152153
make-arguments: ${{ github.event.inputs.make-arguments }}
153-
if: needs.select.outputs.linux-x86 == 'true'
154+
if: needs.select.outputs.linux-x86-hs == 'true'
154155

155156
build-linux-x64-hs-nopch:
156157
name: linux-x64-hs-nopch
@@ -300,16 +301,6 @@ jobs:
300301
bootjdk-platform: linux-x64
301302
runs-on: ubuntu-22.04
302303

303-
test-linux-x86:
304-
name: linux-x86
305-
needs:
306-
- build-linux-x86
307-
uses: ./.github/workflows/test.yml
308-
with:
309-
platform: linux-x86
310-
bootjdk-platform: linux-x64
311-
runs-on: ubuntu-22.04
312-
313304
test-macos-x64:
314305
name: macos-x64
315306
needs:
@@ -347,7 +338,7 @@ jobs:
347338
if: always()
348339
needs:
349340
- build-linux-x64
350-
- build-linux-x86
341+
- build-linux-x86-hs
351342
- build-linux-x64-hs-nopch
352343
- build-linux-x64-hs-zero
353344
- build-linux-x64-hs-minimal
@@ -358,7 +349,6 @@ jobs:
358349
- build-windows-x64
359350
- build-windows-aarch64
360351
- test-linux-x64
361-
- test-linux-x86
362352
- test-macos-x64
363353
- test-windows-x64
364354

@@ -371,7 +361,7 @@ jobs:
371361
-H 'Accept: application/vnd.github+json' \
372362
-H 'Authorization: Bearer ${{ github.token }}' \
373363
-H 'X-GitHub-Api-Version: 2022-11-28' \
374-
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts')"
364+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
375365
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
376366
for id in $BUNDLE_ARTIFACT_IDS; do
377367
echo "Removing $id"

make/autoconf/flags-ldflags.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
7171
LDFLAGS_CXX_PARTIAL_LINKING="$MACHINE_FLAG -r"
7272
7373
if test "x$OPENJDK_TARGET_OS" = xlinux; then
74+
# Clang needs the lld linker to work correctly
7475
BASIC_LDFLAGS="-fuse-ld=lld -Wl,--exclude-libs,ALL"
76+
UTIL_REQUIRE_PROGS(LLD, lld)
7577
fi
7678
if test "x$OPENJDK_TARGET_OS" = xaix; then
7779
BASIC_LDFLAGS="-Wl,-b64 -Wl,-brtl -Wl,-bnorwexec -Wl,-bnolibpath -Wl,-bnoexpall \

make/autoconf/toolchain.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,9 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_EXTRA],
678678
test_metal=`$METAL --version 2>&1`
679679
if test $? -ne 0; then
680680
AC_MSG_RESULT([no])
681+
AC_MSG_NOTICE([A full XCode is required to build the JDK (not only command line tools)])
682+
AC_MSG_NOTICE([If you have XCode installed, you might need to reset the Xcode active developer directory])
683+
AC_MSG_NOTICE([using 'sudo xcode-select -r'])
681684
AC_MSG_ERROR([XCode tool 'metal' neither found in path nor with xcrun])
682685
else
683686
AC_MSG_RESULT([yes, will be using '$METAL'])

make/hotspot/lib/CompileGtest.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ $(eval $(call SetupJdkLibrary, BUILD_GTEST_LIBGTEST, \
5757
$(GTEST_FRAMEWORK_SRC)/googletest/src \
5858
$(GTEST_FRAMEWORK_SRC)/googlemock/src, \
5959
INCLUDE_FILES := gtest-all.cc gmock-all.cc, \
60-
DISABLED_WARNINGS_gcc := undef unused-result format-nonliteral maybe-uninitialized, \
60+
DISABLED_WARNINGS_gcc := undef unused-result format-nonliteral \
61+
maybe-uninitialized zero-as-null-pointer-constant, \
6162
DISABLED_WARNINGS_clang := undef unused-result format-nonliteral, \
6263
DEFAULT_CFLAGS := false, \
6364
CFLAGS := $(JVM_CFLAGS) \

0 commit comments

Comments
 (0)