Skip to content

Commit 8f1f73f

Browse files
[GR-57299] Merge in tag jdk-24+11
PullRequest: labsjdk-ce/105
2 parents f6ce21e + cd06031 commit 8f1f73f

File tree

321 files changed

+4696
-5141
lines changed

Some content is hidden

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

321 files changed

+4696
-5141
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ jobs:
371371
-H 'Accept: application/vnd.github+json' \
372372
-H 'Authorization: Bearer ${{ github.token }}' \
373373
-H 'X-GitHub-Api-Version: 2022-11-28' \
374-
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts')"
374+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
375375
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
376376
for id in $BUNDLE_ARTIFACT_IDS; do
377377
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/common/native/Link.gmk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ define CreateStaticLibrary
109109
$(if $$($1_LINK_OBJS_RELATIVE), $$(CD) $$(OUTPUTDIR) ; ) \
110110
$$($1_LD) $(LDFLAGS_CXX_PARTIAL_LINKING) $$($1_SYSROOT_LDFLAGS) \
111111
-o $$($1_TARGET_RELOCATABLE) $$($1_LD_OBJ_ARG))
112+
# 'ld -r' might invalidate the .llvm_addrsig section, and this will cause subsequent
113+
# calls to lld (with '-Wl,--icf=safe') to fail when linking with this library, so
114+
# remove that section.
115+
$$(call ExecuteWithLog, $$($1_OBJECT_DIR)/$$($1_SAFE_NAME)_objcopy_remove_llvm_addrsig_section, \
116+
$$($1_OBJCOPY) --remove-section=.llvm_addrsig $$($1_TARGET_RELOCATABLE))
112117
endif
113118
$$(call ExecuteWithLog, $$($1_OBJECT_DIR)/$$($1_SAFE_NAME)_run_ar, \
114119
$(if $$($1_LINK_OBJS_RELATIVE), $$(CD) $$(OUTPUTDIR) ; ) \

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) \

make/modules/java.desktop/lib/AwtLibraries.gmk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ ifeq ($(call isTargetOs, windows macosx)+$(ENABLE_HEADLESS_ONLY), false+false)
237237
DISABLED_WARNINGS_gcc := int-to-pointer-cast, \
238238
DISABLED_WARNINGS_gcc_awt_Taskbar.c := parentheses, \
239239
DISABLED_WARNINGS_gcc_GLXSurfaceData.c := unused-function, \
240-
DISABLED_WARNINGS_gcc_gtk2_interface.c := parentheses type-limits, \
241240
DISABLED_WARNINGS_gcc_gtk3_interface.c := parentheses type-limits \
242241
unused-function, \
243242
DISABLED_WARNINGS_gcc_OGLBufImgOps.c := format-nonliteral, \
@@ -252,7 +251,6 @@ ifeq ($(call isTargetOs, windows macosx)+$(ENABLE_HEADLESS_ONLY), false+false)
252251
DISABLED_WARNINGS_gcc_XToolkit.c := unused-result, \
253252
DISABLED_WARNINGS_gcc_XWindow.c := unused-function, \
254253
DISABLED_WARNINGS_clang_awt_Taskbar.c := parentheses, \
255-
DISABLED_WARNINGS_clang_gtk2_interface.c := parentheses, \
256254
DISABLED_WARNINGS_clang_gtk3_interface.c := parentheses, \
257255
DISABLED_WARNINGS_clang_OGLBufImgOps.c := format-nonliteral, \
258256
DISABLED_WARNINGS_clang_OGLPaints.c := format-nonliteral, \
@@ -262,8 +260,6 @@ ifeq ($(call isTargetOs, windows macosx)+$(ENABLE_HEADLESS_ONLY), false+false)
262260
DISABLED_WARNINGS_clang_aix_awt_Taskbar.c := parentheses, \
263261
DISABLED_WARNINGS_clang_aix_OGLPaints.c := format-nonliteral, \
264262
DISABLED_WARNINGS_clang_aix_OGLBufImgOps.c := format-nonliteral, \
265-
DISABLED_WARNINGS_clang_aix_gtk2_interface.c := parentheses \
266-
logical-op-parentheses, \
267263
DISABLED_WARNINGS_clang_aix_gtk3_interface.c := parentheses \
268264
logical-op-parentheses, \
269265
DISABLED_WARNINGS_clang_aix_sun_awt_X11_GtkFileDialogPeer.c := \

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16184,6 +16184,19 @@ instruct TailjmpInd(iRegPNoSpNoRfp jump_target, iRegP_R0 ex_oop)
1618416184
ins_pipe(pipe_class_call);
1618516185
%}
1618616186

16187+
// Forward exception.
16188+
instruct ForwardExceptionjmp()
16189+
%{
16190+
match(ForwardException);
16191+
ins_cost(CALL_COST);
16192+
16193+
format %{ "b forward_exception_stub" %}
16194+
ins_encode %{
16195+
__ far_jump(RuntimeAddress(StubRoutines::forward_exception_entry()));
16196+
%}
16197+
ins_pipe(pipe_class_call);
16198+
%}
16199+
1618716200
// Create exception oop: created by stack-crawling runtime code.
1618816201
// Created exception is now available to this handler, and is setup
1618916202
// just prior to jumping to this handler. No code emitted.

src/hotspot/cpu/aarch64/immediate_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ static int expandLogicalImmediate(uint32_t immN, uint32_t immr,
295295
uint64_t and_bits_sub = replicate(and_bit, 1, nbits);
296296
uint64_t or_bits_sub = replicate(or_bit, 1, nbits);
297297
uint64_t and_bits_top = (and_bits_sub << nbits) | ones(nbits);
298-
uint64_t or_bits_top = (0 << nbits) | or_bits_sub;
298+
uint64_t or_bits_top = (UCONST64(0) << nbits) | or_bits_sub;
299299

300300
tmask = ((tmask
301301
& (replicate(and_bits_top, 2 * nbits, 32 / nbits)))

src/hotspot/cpu/aarch64/jniFastGetField_aarch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, 2020, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -201,7 +201,7 @@ address JNI_FastGetField::generate_fast_get_int_field0(BasicType type) {
201201

202202
{
203203
__ enter();
204-
__ lea(rscratch1, ExternalAddress(slow_case_addr));
204+
__ lea(rscratch1, RuntimeAddress(slow_case_addr));
205205
__ blr(rscratch1);
206206
__ leave();
207207
__ ret(lr);

src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,8 +1730,8 @@ void MacroAssembler::lookup_secondary_supers_table_slow_path(Register r_super_kl
17301730
// The bitmap is full to bursting.
17311731
// Implicit invariant: BITMAP_FULL implies (length > 0)
17321732
assert(Klass::SECONDARY_SUPERS_BITMAP_FULL == ~uintx(0), "");
1733-
cmn(r_bitmap, (u1)1);
1734-
br(EQ, L_huge);
1733+
cmpw(r_array_length, (u1)(Klass::SECONDARY_SUPERS_TABLE_SIZE - 2));
1734+
br(GT, L_huge);
17351735

17361736
// NB! Our caller has checked bits 0 and 1 in the bitmap. The
17371737
// current slot (at secondary_supers[r_array_index]) has not yet

0 commit comments

Comments
 (0)