Skip to content

Commit 81134c2

Browse files
Merge tag 'jdk-25+5' into labsjdk/adopt-jdk-25+5-master
Added tag jdk-25+5 for changeset 2e00816
2 parents 44c0505 + 2e00816 commit 81134c2

File tree

261 files changed

+3967
-11569
lines changed

Some content is hidden

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

261 files changed

+3967
-11569
lines changed

doc/hotspot-unit-tests.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ <h3 id="error-messages">Error messages</h3>
245245
<p>All GoogleTest asserts print compared expressions and their values,
246246
so there is no need to have them in error messages. Asserts print only
247247
compared values, they do not print any of interim variables, e.g.
248-
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8)) || i == 18)</code>
248+
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8))) || i == 18)</code>
249249
prints only one value. If you use some complex predicates, please
250250
consider <code>EXPECT_PRED*</code> or <code>EXPECT_FORMAT_PRED</code>
251251
assertions family, they check that a predicate returns true/success and

doc/hotspot-unit-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Provide informative, but not too verbose error messages.
172172
All GoogleTest asserts print compared expressions and their values, so
173173
there is no need to have them in error messages. Asserts print only
174174
compared values, they do not print any of interim variables, e.g.
175-
`ASSERT_TRUE((val1 == val2 && isFail(foo(8)) || i == 18)` prints only
175+
`ASSERT_TRUE((val1 == val2 && isFail(foo(8))) || i == 18)` prints only
176176
one value. If you use some complex predicates, please consider
177177
`EXPECT_PRED*` or `EXPECT_FORMAT_PRED` assertions family, they check that
178178
a predicate returns true/success and print out all parameters values.

make/test/BuildMicrobenchmark.gmk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2018, 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
@@ -96,8 +96,6 @@ $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
9696
--add-exports java.base/jdk.internal.foreign=ALL-UNNAMED \
9797
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
9898
--add-exports java.base/jdk.internal.util=ALL-UNNAMED \
99-
--add-exports java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED \
100-
--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
10199
--add-exports java.base/jdk.internal.vm=ALL-UNNAMED \
102100
--add-exports java.base/sun.invoke.util=ALL-UNNAMED \
103101
--add-exports java.base/sun.security.util=ALL-UNNAMED \

src/hotspot/cpu/aarch64/interp_masm_aarch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, 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
*
@@ -503,7 +503,7 @@ void InterpreterMacroAssembler::remove_activation(
503503

504504
// get method access flags
505505
ldr(r1, Address(rfp, frame::interpreter_frame_method_offset * wordSize));
506-
ldr(r2, Address(r1, Method::access_flags_offset()));
506+
ldrh(r2, Address(r1, Method::access_flags_offset()));
507507
tbz(r2, exact_log2(JVM_ACC_SYNCHRONIZED), unlocked);
508508

509509
// Don't unlock anything if the _do_not_unlock_if_synchronized flag

src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, 2021, Red Hat Inc. All rights reserved.
44
* Copyright (c) 2021, Azul Systems, Inc. All rights reserved.
55
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -760,7 +760,7 @@ AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters(MacroAssembler *masm
760760
Label L_skip_barrier;
761761

762762
{ // Bypass the barrier for non-static methods
763-
__ ldrw(rscratch1, Address(rmethod, Method::access_flags_offset()));
763+
__ ldrh(rscratch1, Address(rmethod, Method::access_flags_offset()));
764764
__ andsw(zr, rscratch1, JVM_ACC_STATIC);
765765
__ br(Assembler::EQ, L_skip_barrier); // non-static
766766
}

src/hotspot/cpu/aarch64/templateInterpreterGenerator_aarch64.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, 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
*
@@ -809,7 +809,7 @@ void TemplateInterpreterGenerator::lock_method() {
809809
#ifdef ASSERT
810810
{
811811
Label L;
812-
__ ldrw(r0, access_flags);
812+
__ ldrh(r0, access_flags);
813813
__ tst(r0, JVM_ACC_SYNCHRONIZED);
814814
__ br(Assembler::NE, L);
815815
__ stop("method doesn't need synchronization");
@@ -820,7 +820,7 @@ void TemplateInterpreterGenerator::lock_method() {
820820
// get synchronization object
821821
{
822822
Label done;
823-
__ ldrw(r0, access_flags);
823+
__ ldrh(r0, access_flags);
824824
__ tst(r0, JVM_ACC_STATIC);
825825
// get receiver (assume this is frequent case)
826826
__ ldr(r0, Address(rlocals, Interpreter::local_offset_in_bytes(0)));
@@ -1225,7 +1225,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
12251225

12261226
// make sure method is native & not abstract
12271227
#ifdef ASSERT
1228-
__ ldrw(r0, access_flags);
1228+
__ ldrh(r0, access_flags);
12291229
{
12301230
Label L;
12311231
__ tst(r0, JVM_ACC_NATIVE);
@@ -1277,7 +1277,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
12771277
#ifdef ASSERT
12781278
{
12791279
Label L;
1280-
__ ldrw(r0, access_flags);
1280+
__ ldrh(r0, access_flags);
12811281
__ tst(r0, JVM_ACC_SYNCHRONIZED);
12821282
__ br(Assembler::EQ, L);
12831283
__ stop("method needs synchronization");
@@ -1354,7 +1354,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
13541354
// pass mirror handle if static call
13551355
{
13561356
Label L;
1357-
__ ldrw(t, Address(rmethod, Method::access_flags_offset()));
1357+
__ ldrh(t, Address(rmethod, Method::access_flags_offset()));
13581358
__ tbz(t, exact_log2(JVM_ACC_STATIC), L);
13591359
// get mirror
13601360
__ load_mirror(t, rmethod, r10, rscratch2);
@@ -1564,7 +1564,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
15641564
// do unlocking if necessary
15651565
{
15661566
Label L;
1567-
__ ldrw(t, Address(rmethod, Method::access_flags_offset()));
1567+
__ ldrh(t, Address(rmethod, Method::access_flags_offset()));
15681568
__ tbz(t, exact_log2(JVM_ACC_SYNCHRONIZED), L);
15691569
// the code below should be shared with interpreter macro
15701570
// assembler implementation
@@ -1695,7 +1695,7 @@ address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized) {
16951695

16961696
// make sure method is not native & not abstract
16971697
#ifdef ASSERT
1698-
__ ldrw(r0, access_flags);
1698+
__ ldrh(r0, access_flags);
16991699
{
17001700
Label L;
17011701
__ tst(r0, JVM_ACC_NATIVE);
@@ -1751,7 +1751,7 @@ address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized) {
17511751
#ifdef ASSERT
17521752
{
17531753
Label L;
1754-
__ ldrw(r0, access_flags);
1754+
__ ldrh(r0, access_flags);
17551755
__ tst(r0, JVM_ACC_SYNCHRONIZED);
17561756
__ br(Assembler::EQ, L);
17571757
__ stop("method needs synchronization");

src/hotspot/cpu/arm/interp_masm_arm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 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
@@ -736,7 +736,7 @@ void InterpreterMacroAssembler::remove_activation(TosState state, Register ret_a
736736
ldrb(Rflag, do_not_unlock_if_synchronized);
737737

738738
// get method access flags
739-
ldr_u32(Raccess_flags, Address(Rmethod, Method::access_flags_offset()));
739+
ldrh(Raccess_flags, Address(Rmethod, Method::access_flags_offset()));
740740

741741
strb(zero_register(Rtemp), do_not_unlock_if_synchronized); // reset the flag
742742

src/hotspot/cpu/arm/templateInterpreterGenerator_arm.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 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
@@ -579,7 +579,7 @@ void TemplateInterpreterGenerator::lock_method() {
579579

580580
#ifdef ASSERT
581581
{ Label L;
582-
__ ldr_u32(Rtemp, Address(Rmethod, Method::access_flags_offset()));
582+
__ ldrh(Rtemp, Address(Rmethod, Method::access_flags_offset()));
583583
__ tbnz(Rtemp, JVM_ACC_SYNCHRONIZED_BIT, L);
584584
__ stop("method doesn't need synchronization");
585585
__ bind(L);
@@ -588,7 +588,7 @@ void TemplateInterpreterGenerator::lock_method() {
588588

589589
// get synchronization object
590590
{ Label done;
591-
__ ldr_u32(Rtemp, Address(Rmethod, Method::access_flags_offset()));
591+
__ ldrh(Rtemp, Address(Rmethod, Method::access_flags_offset()));
592592
__ tst(Rtemp, JVM_ACC_STATIC);
593593
__ ldr(R0, Address(Rlocals, Interpreter::local_offset_in_bytes(0)), eq); // get receiver (assume this is frequent case)
594594
__ b(done, eq);
@@ -851,7 +851,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
851851

852852
// make sure method is native & not abstract
853853
#ifdef ASSERT
854-
__ ldr_u32(Rtemp, Address(Rmethod, Method::access_flags_offset()));
854+
__ ldrh(Rtemp, Address(Rmethod, Method::access_flags_offset()));
855855
{
856856
Label L;
857857
__ tbnz(Rtemp, JVM_ACC_NATIVE_BIT, L);
@@ -893,7 +893,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
893893
// no synchronization necessary
894894
#ifdef ASSERT
895895
{ Label L;
896-
__ ldr_u32(Rtemp, Address(Rmethod, Method::access_flags_offset()));
896+
__ ldrh(Rtemp, Address(Rmethod, Method::access_flags_offset()));
897897
__ tbz(Rtemp, JVM_ACC_SYNCHRONIZED_BIT, L);
898898
__ stop("method needs synchronization");
899899
__ bind(L);
@@ -975,7 +975,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
975975
// Pass JNIEnv and mirror for static methods
976976
{
977977
Label L;
978-
__ ldr_u32(Rtemp, Address(Rmethod, Method::access_flags_offset()));
978+
__ ldrh(Rtemp, Address(Rmethod, Method::access_flags_offset()));
979979
__ add(R0, Rthread, in_bytes(JavaThread::jni_environment_offset()));
980980
__ tbz(Rtemp, JVM_ACC_STATIC_BIT, L);
981981
__ load_mirror(Rtemp, Rmethod, Rtemp);
@@ -1204,7 +1204,7 @@ address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized) {
12041204

12051205
// make sure method is not native & not abstract
12061206
#ifdef ASSERT
1207-
__ ldr_u32(Rtemp, Address(Rmethod, Method::access_flags_offset()));
1207+
__ ldrh(Rtemp, Address(Rmethod, Method::access_flags_offset()));
12081208
{
12091209
Label L;
12101210
__ tbz(Rtemp, JVM_ACC_NATIVE_BIT, L);
@@ -1249,7 +1249,7 @@ address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized) {
12491249
// no synchronization necessary
12501250
#ifdef ASSERT
12511251
{ Label L;
1252-
__ ldr_u32(Rtemp, Address(Rmethod, Method::access_flags_offset()));
1252+
__ ldrh(Rtemp, Address(Rmethod, Method::access_flags_offset()));
12531253
__ tbz(Rtemp, JVM_ACC_SYNCHRONIZED_BIT, L);
12541254
__ stop("method needs synchronization");
12551255
__ bind(L);

src/hotspot/cpu/ppc/interp_masm_ppc_64.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2012, 2024 SAP SE. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -681,14 +681,14 @@ void InterpreterMacroAssembler::unlock_if_synchronized_method(TosState state,
681681
// Check if synchronized method or unlocking prevented by
682682
// JavaThread::do_not_unlock_if_synchronized flag.
683683
lbz(Rdo_not_unlock_flag, in_bytes(JavaThread::do_not_unlock_if_synchronized_offset()), R16_thread);
684-
lwz(Raccess_flags, in_bytes(Method::access_flags_offset()), R19_method);
684+
lhz(Raccess_flags, in_bytes(Method::access_flags_offset()), R19_method);
685685
li(R0, 0);
686686
stb(R0, in_bytes(JavaThread::do_not_unlock_if_synchronized_offset()), R16_thread); // reset flag
687687

688688
push(state);
689689

690690
// Skip if we don't have to unlock.
691-
rldicl_(R0, Raccess_flags, 64-JVM_ACC_SYNCHRONIZED_BIT, 63); // Extract bit and compare to 0.
691+
testbitdi(CCR0, R0, Raccess_flags, JVM_ACC_SYNCHRONIZED_BIT);
692692
beq(CCR0, Lunlocked);
693693

694694
cmpwi(CCR0, Rdo_not_unlock_flag, 0);

src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2012, 2024 SAP SE. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -1202,7 +1202,7 @@ AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters(MacroAssembler *masm
12021202
Label L_skip_barrier;
12031203

12041204
{ // Bypass the barrier for non-static methods
1205-
__ lwz(R0, in_bytes(Method::access_flags_offset()), R19_method);
1205+
__ lhz(R0, in_bytes(Method::access_flags_offset()), R19_method);
12061206
__ andi_(R0, R0, JVM_ACC_STATIC);
12071207
__ beq(CCR0, L_skip_barrier); // non-static
12081208
}

0 commit comments

Comments
 (0)