Skip to content

Commit 3338753

Browse files
committed
Merge branch 'konajdk-21.0.8' into dev21.0.8
2 parents 98feb00 + 08b0738 commit 3338753

File tree

3,476 files changed

+97374
-37143
lines changed

Some content is hidden

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

3,476 files changed

+97374
-37143
lines changed

.jcheck/conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[general]
22
project=jdk-updates
33
jbs=JDK
4-
version=21.0.7
4+
version=21.0.8
55

66
[checks]
77
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists

make/Bundles.gmk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ ifneq ($(filter product-bundles% legacy-bundles, $(MAKECMDGOALS)), )
242242
)
243243

244244
JDK_SYMBOLS_BUNDLE_FILES := \
245-
$(call FindFiles, $(SYMBOLS_IMAGE_DIR))
245+
$(filter-out \
246+
%.stripped.pdb, \
247+
$(call FindFiles, $(SYMBOLS_IMAGE_DIR)) \
248+
)
246249

247250
TEST_DEMOS_BUNDLE_FILES := $(filter $(JDK_DEMOS_IMAGE_HOMEDIR)/demo/%, \
248251
$(ALL_JDK_DEMOS_FILES))

make/RunTests.gmk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ define SetupRunMicroTestBody
602602
$1_JMH_JVM_ARGS += $$(MICRO_VM_OPTIONS) $$(MICRO_JAVA_OPTIONS)
603603
endif
604604

605-
$1_MICRO_VM_OPTIONS := -jvmArgs $(call ShellQuote,$$($1_JMH_JVM_ARGS))
605+
$1_MICRO_VM_OPTIONS := -jvmArgsPrepend $(call ShellQuote,$$($1_JMH_JVM_ARGS))
606606

607607
ifneq ($$(MICRO_ITER), )
608608
$1_MICRO_ITER := -i $$(MICRO_ITER)
@@ -848,6 +848,10 @@ define SetupRunJtregTestBody
848848
endif
849849
endif
850850

851+
ifneq ($$(findstring -XX:+UseShenandoahGC, $$(JTREG_ALL_OPTIONS)), )
852+
JTREG_AUTO_PROBLEM_LISTS += ProblemList-shenandoah.txt
853+
endif
854+
851855
ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
852856
# Accept both absolute paths as well as relative to the current test root.
853857
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \

make/autoconf/jdk-options.m4

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,8 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
197197
# three different page sizes: 4K, 64K, and if run on Mac m1 hardware, 16K.
198198
COMPATIBLE_CDS_ALIGNMENT_DEFAULT=false
199199
if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
200-
COMPATIBLE_CDS_ALIGNMENT_DEFAULT=true
200+
COMPATIBLE_CDS_ALIGNMENT_DEFAULT=auto
201201
fi
202-
AC_SUBST(COMPATIBLE_CDS_ALIGNMENT_DEFAULT)
203202
204203
# Compress jars
205204
COMPRESS_JARS=false
@@ -693,7 +692,7 @@ AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
693692
UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: $COMPATIBLE_CDS_ALIGNMENT_DEFAULT,
694693
RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
695694
DESC: [enable use alternative compatible cds core region alignment],
696-
DEFAULT_DESC: [disabled],
695+
DEFAULT_DESC: [disabled except on linux-aarch64],
697696
CHECKING_MSG: [if compatible cds region alignment enabled],
698697
CHECK_AVAILABLE: [
699698
AC_MSG_CHECKING([if CDS archive is available])

make/conf/version-numbers.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828

2929
DEFAULT_VERSION_FEATURE=21
3030
DEFAULT_VERSION_INTERIM=0
31-
DEFAULT_VERSION_UPDATE=7
31+
DEFAULT_VERSION_UPDATE=8
3232
DEFAULT_VERSION_PATCH=0
3333
DEFAULT_VERSION_EXTRA1=0
3434
DEFAULT_VERSION_EXTRA2=0
3535
DEFAULT_VERSION_EXTRA3=0
36-
DEFAULT_VERSION_DATE=2025-04-15
36+
DEFAULT_VERSION_DATE=2025-07-15
3737
DEFAULT_VERSION_CLASSFILE_MAJOR=65 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
3838
DEFAULT_VERSION_CLASSFILE_MINOR=0
3939
DEFAULT_VERSION_DOCS_API_SINCE=11

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
CFLAGS := $(JVM_CFLAGS) \
6364
-I$(GTEST_FRAMEWORK_SRC)/googletest \

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBLCMS, \
309309
common/awt/debug \
310310
libawt/java2d, \
311311
HEADERS_FROM_SRC := $(LIBLCMS_HEADERS_FROM_SRC), \
312-
DISABLED_WARNINGS_gcc := format-nonliteral type-limits stringop-truncation, \
312+
DISABLED_WARNINGS_gcc := format-nonliteral stringop-truncation, \
313313
DISABLED_WARNINGS_clang := format-nonliteral, \
314314
LDFLAGS := $(LDFLAGS_JDKLIB) \
315315
$(call SET_SHARED_LIBRARY_ORIGIN), \
@@ -483,7 +483,7 @@ else
483483
# range-loop-analysis -> clang on Xcode12
484484

485485
HARFBUZZ_DISABLED_WARNINGS_gcc := missing-field-initializers strict-aliasing \
486-
unused-result array-bounds parentheses
486+
unused-result array-bounds parentheses dangling-pointer
487487
# noexcept-type required for GCC 7 builds. Not required for GCC 8+.
488488
# expansion-to-defined required for GCC 9 builds. Not required for GCC 10+.
489489
# maybe-uninitialized required for GCC 8 builds. Not required for GCC 9+.
@@ -792,14 +792,15 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
792792
DISABLED_WARNINGS_gcc_dgif_lib.c := sign-compare, \
793793
DISABLED_WARNINGS_gcc_jcmaster.c := implicit-fallthrough, \
794794
DISABLED_WARNINGS_gcc_jdphuff.c := shift-negative-value, \
795-
DISABLED_WARNINGS_gcc_png.c := maybe-uninitialized, \
795+
DISABLED_WARNINGS_gcc_png.c := maybe-uninitialized unused-function, \
796796
DISABLED_WARNINGS_gcc_pngerror.c := maybe-uninitialized, \
797797
DISABLED_WARNINGS_gcc_splashscreen_gfx_impl.c := implicit-fallthrough maybe-uninitialized, \
798798
DISABLED_WARNINGS_gcc_splashscreen_impl.c := implicit-fallthrough sign-compare unused-function, \
799799
DISABLED_WARNINGS_gcc_splashscreen_sys.c := type-limits unused-result, \
800800
DISABLED_WARNINGS_clang := deprecated-non-prototype, \
801801
DISABLED_WARNINGS_clang_dgif_lib.c := sign-compare, \
802802
DISABLED_WARNINGS_clang_gzwrite.c := format-nonliteral, \
803+
DISABLED_WARNINGS_clang_png.c := unused-function, \
803804
DISABLED_WARNINGS_clang_splashscreen_impl.c := sign-compare, \
804805
DISABLED_WARNINGS_clang_splashscreen_png.c := incompatible-pointer-types, \
805806
DISABLED_WARNINGS_clang_splashscreen_sys.m := deprecated-declarations, \

make/modules/jdk.jdwp.agent/Lib.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJDWP, \
5858
DISABLED_WARNINGS_clang_EventRequestImpl.c := self-assign, \
5959
DISABLED_WARNINGS_clang_inStream.c := sometimes-uninitialized, \
6060
DISABLED_WARNINGS_clang_log_messages.c := format-nonliteral, \
61+
DISABLED_WARNINGS_microsoft_debugInit.c := 5287, \
6162
EXTRA_HEADER_DIRS := \
6263
include \
6364
libjdwp/export, \

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
3-
// Copyright (c) 2014, 2021, Red Hat, Inc. All rights reserved.
3+
// Copyright (c) 2014, 2024, Red Hat, Inc. All rights reserved.
44
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
//
66
// This code is free software; you can redistribute it and/or modify it
@@ -1648,8 +1648,8 @@ int MachCallRuntimeNode::ret_addr_offset() {
16481648
// for real runtime callouts it will be six instructions
16491649
// see aarch64_enc_java_to_runtime
16501650
// adr(rscratch2, retaddr)
1651+
// str(rscratch2, Address(rthread, JavaThread::last_Java_pc_offset()));
16511652
// lea(rscratch1, RuntimeAddress(addr)
1652-
// stp(zr, rscratch2, Address(__ pre(sp, -2 * wordSize)))
16531653
// blr(rscratch1)
16541654
CodeBlob *cb = CodeCache::find_blob(_entry_point);
16551655
if (cb) {
@@ -2739,10 +2739,6 @@ typedef void (MacroAssembler::* mem_vector_insn)(FloatRegister Rt,
27392739
{
27402740
Address addr = mem2address(opcode, base, index, scale, disp);
27412741
if (addr.getMode() == Address::base_plus_offset) {
2742-
/* If we get an out-of-range offset it is a bug in the compiler,
2743-
so we assert here. */
2744-
assert(Address::offset_ok_for_immed(addr.offset(), exact_log2(size_in_memory)),
2745-
"c2 compiler bug");
27462742
/* Fix up any out-of-range offsets. */
27472743
assert_different_registers(rscratch1, base);
27482744
assert_different_registers(rscratch1, reg);
@@ -3774,14 +3770,13 @@ encode %{
37743770
__ post_call_nop();
37753771
} else {
37763772
Label retaddr;
3773+
// Make the anchor frame walkable
37773774
__ adr(rscratch2, retaddr);
3775+
__ str(rscratch2, Address(rthread, JavaThread::last_Java_pc_offset()));
37783776
__ lea(rscratch1, RuntimeAddress(entry));
3779-
// Leave a breadcrumb for JavaFrameAnchor::capture_last_Java_pc()
3780-
__ stp(zr, rscratch2, Address(__ pre(sp, -2 * wordSize)));
37813777
__ blr(rscratch1);
37823778
__ bind(retaddr);
37833779
__ post_call_nop();
3784-
__ add(sp, sp, 2 * wordSize);
37853780
}
37863781
if (Compile::current()->max_vector_size() > 0) {
37873782
__ reinitialize_ptrue();
@@ -16696,6 +16691,39 @@ instruct partialSubtypeCheck(iRegP_R4 sub, iRegP_R0 super, iRegP_R2 temp, iRegP_
1669616691
ins_pipe(pipe_class_memory);
1669716692
%}
1669816693

16694+
instruct partialSubtypeCheckConstSuper(iRegP_R4 sub, iRegP_R0 super_reg, immP super_con, vRegD_V0 vtemp, iRegP_R5 result,
16695+
iRegP_R1 tempR1, iRegP_R2 tempR2, iRegP_R3 tempR3,
16696+
rFlagsReg cr)
16697+
%{
16698+
match(Set result (PartialSubtypeCheck sub (Binary super_reg super_con)));
16699+
predicate(UseSecondarySupersTable);
16700+
effect(KILL cr, TEMP tempR1, TEMP tempR2, TEMP tempR3, TEMP vtemp);
16701+
16702+
ins_cost(700); // smaller than the next version
16703+
format %{ "partialSubtypeCheck $result, $sub, super" %}
16704+
16705+
ins_encode %{
16706+
bool success = false;
16707+
u1 super_klass_slot = ((Klass*)$super_con$$constant)->hash_slot();
16708+
if (InlineSecondarySupersTest) {
16709+
success = __ lookup_secondary_supers_table($sub$$Register, $super_reg$$Register,
16710+
$tempR1$$Register, $tempR2$$Register, $tempR3$$Register,
16711+
$vtemp$$FloatRegister,
16712+
$result$$Register,
16713+
super_klass_slot);
16714+
} else {
16715+
address call = __ trampoline_call(RuntimeAddress(StubRoutines::lookup_secondary_supers_table_stub(super_klass_slot)));
16716+
success = (call != nullptr);
16717+
}
16718+
if (!success) {
16719+
ciEnv::current()->record_failure("CodeCache is full");
16720+
return;
16721+
}
16722+
%}
16723+
16724+
ins_pipe(pipe_class_memory);
16725+
%}
16726+
1669916727
instruct partialSubtypeCheckVsZero(iRegP_R4 sub, iRegP_R0 super, iRegP_R2 temp, iRegP_R5 result, immP0 zero, rFlagsReg cr)
1670016728
%{
1670116729
match(Set cr (CmpP (PartialSubtypeCheck sub super) zero));

src/hotspot/cpu/aarch64/abstractInterpreter_aarch64.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ void AbstractInterpreter::layout_activation(Method* method,
150150

151151
#ifdef ASSERT
152152
if (caller->is_interpreted_frame()) {
153-
assert(locals < caller->fp() + frame::interpreter_frame_initial_sp_offset, "bad placement");
153+
assert(locals <= caller->interpreter_frame_expression_stack(), "bad placement");
154+
assert(locals >= interpreter_frame->sender_sp() + max_locals - 1, "bad placement");
154155
}
155156
#endif
156157

0 commit comments

Comments
 (0)