Skip to content

Commit 4404fc4

Browse files
authored
Merge pull request #2194 from SAP/pr-jdk-25.0.3+5
Merge to tag jdk-25.0.3+5
2 parents d41aa97 + 33d3217 commit 4404fc4

239 files changed

Lines changed: 5177 additions & 2882 deletions

File tree

Some content is hidden

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

make/autoconf/platform.m4

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2026, 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
@@ -311,6 +311,12 @@ AC_DEFUN([PLATFORM_EXTRACT_TARGET_AND_BUILD],
311311
else
312312
OPENJDK_BUILD_OS_ENV="$VAR_OS"
313313
fi
314+
# Special handling for MSYS2 that reports a Cygwin triplet as the default host triplet.
315+
case `uname` in
316+
MSYS*)
317+
OPENJDK_BUILD_OS_ENV=windows.msys2
318+
;;
319+
esac
314320
OPENJDK_BUILD_CPU="$VAR_CPU"
315321
OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
316322
OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"

make/modules/java.base/Copy.gmk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2026, 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
@@ -181,6 +181,10 @@ ifeq ($(USE_EXTERNAL_LIBZ), true)
181181
LEGAL_EXCLUDES += zlib.md
182182
endif
183183

184+
ifneq ($(TOOLCHAIN_TYPE), gcc)
185+
LEGAL_EXCLUDES += gcc.md
186+
endif
187+
184188
$(eval $(call SetupCopyLegalFiles, COPY_LEGAL, \
185189
EXCLUDES := $(LEGAL_EXCLUDES), \
186190
))

src/hotspot/cpu/ppc/c2_MacroAssembler_ppc.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,19 +600,21 @@ void C2_MacroAssembler::count_positives(Register src, Register cnt, Register res
600600
orr(tmp0, tmp2, tmp0);
601601

602602
and_(tmp0, tmp0, tmp1);
603-
bne(CR0, Lslow); // Found negative byte.
603+
bne(CR0, Lslow); // Found negative byte.
604604
addi(result, result, 16);
605605
bdnz(Lfastloop);
606606

607607
bind(Lslow); // Fallback to slow version.
608608
subf(tmp0, src, result); // Bytes known positive.
609-
subf_(tmp0, tmp0, cnt); // Remaining Bytes.
609+
clrldi(tmp1, cnt, 32); // Clear garbage from upper 32 bits.
610+
subf_(tmp0, tmp0, tmp1); // Remaining Bytes.
610611
beq(CR0, Ldone);
611612
mtctr(tmp0);
613+
612614
bind(Lloop);
613615
lbz(tmp0, 0, result);
614616
andi_(tmp0, tmp0, 0x80);
615-
bne(CR0, Ldone); // Found negative byte.
617+
bne(CR0, Ldone); // Found negative byte.
616618
addi(result, result, 1);
617619
bdnz(Lloop);
618620

src/hotspot/cpu/ppc/methodHandles_ppc.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2012, 2025 SAP SE. All rights reserved.
2+
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
3+
* Copyright (c) 2012, 2026 SAP SE. 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
@@ -49,11 +49,6 @@
4949

5050
#define BIND(label) bind(label); BLOCK_COMMENT(#label ":")
5151

52-
// Workaround for C++ overloading nastiness on '0' for RegisterOrConstant.
53-
inline static RegisterOrConstant constant(int value) {
54-
return RegisterOrConstant(value);
55-
}
56-
5752
void MethodHandles::load_klass_from_Class(MacroAssembler* _masm, Register klass_reg,
5853
Register temp_reg, Register temp2_reg) {
5954
if (VerifyMethodHandles) {

src/hotspot/os/aix/os_perf_aix.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,6 @@ static OSReturn get_jvm_load(double* jvm_uload, double* jvm_sload) {
143143
return OS_OK;
144144
}
145145

146-
static void update_prev_time(jvm_time_store_t* from, jvm_time_store_t* to) {
147-
if (from && to) {
148-
memcpy(to, from, sizeof(jvm_time_store_t));
149-
}
150-
}
151-
152146
static void update_prev_ticks(cpu_tick_store_t* from, cpu_tick_store_t* to) {
153147
if (from && to) {
154148
memcpy(to, from, sizeof(cpu_tick_store_t));

src/hotspot/share/gc/g1/g1CollectedHeap.inline.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void G1CollectedHeap::register_region_with_region_attr(G1HeapRegion* r) {
226226

227227
void G1CollectedHeap::register_old_region_with_region_attr(G1HeapRegion* r) {
228228
assert(r->rem_set()->is_complete(), "must be");
229-
_region_attr.set_in_old(r->hrm_index(), true);
229+
_region_attr.set_in_old(r->hrm_index(), true /* is_remset_tracked */, r->has_pinned_objects());
230230
_rem_set->exclude_region_from_scan(r->hrm_index());
231231
}
232232

src/hotspot/share/gc/g1/g1HeapRegionAttr.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,9 @@ class G1HeapRegionAttrBiasedMappedArray : public G1BiasedMappedArray<G1HeapRegio
170170
set_by_index(index, G1HeapRegionAttr(G1HeapRegionAttr::Young, true, is_pinned));
171171
}
172172

173-
void set_in_old(uintptr_t index, bool remset_is_tracked) {
173+
void set_in_old(uintptr_t index, bool remset_is_tracked, bool region_is_pinned) {
174174
assert(get_by_index(index).is_default(),
175175
"Region attributes at index " INTPTR_FORMAT " should be default but is %s", index, get_by_index(index).get_type_str());
176-
// We do not select regions with pinned objects into the collection set.
177-
const bool region_is_pinned = false;
178176
set_by_index(index, G1HeapRegionAttr(G1HeapRegionAttr::Old, remset_is_tracked, region_is_pinned));
179177
}
180178

src/hotspot/share/gc/shenandoah/shenandoahArguments.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,13 @@ void ShenandoahArguments::initialize() {
193193
err_msg("GCCardSizeInBytes ( %u ) must be >= %u\n", GCCardSizeInBytes, (unsigned int) ShenandoahMinCardSizeInBytes));
194194
}
195195

196+
// Gen shen does not support any ShenandoahGCHeuristics value except for the default "adaptive"
197+
if ((strcmp(ShenandoahGCMode, "generational") == 0)
198+
&& strcmp(ShenandoahGCHeuristics, "adaptive") != 0) {
199+
log_warning(gc)("Ignoring -XX:ShenandoahGCHeuristics input: %s, because generational shenandoah only"
200+
" supports adaptive heuristics", ShenandoahGCHeuristics);
201+
}
202+
196203
FullGCForwarding::initialize_flags(MaxHeapSize);
197204
}
198205

src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,12 @@
141141
"GC heuristics to use. This fine-tunes the GC mode selected, " \
142142
"by choosing when to start the GC, how much to process on each " \
143143
"cycle, and what other features to automatically enable. " \
144-
"Possible values are:" \
144+
"When -XX:ShenandoahGCMode is generational, the only supported " \
145+
"option is the default, adaptive. Possible values are:" \
145146
" adaptive - adapt to maintain the given amount of free heap " \
146147
"at all times, even during the GC cycle;" \
147-
" static - trigger GC when free heap falls below the threshold;" \
148+
" static - trigger GC when free heap falls below a specified " \
149+
"threshold;" \
148150
" aggressive - run GC continuously, try to evacuate everything;" \
149151
" compact - run GC more frequently and with deeper targets to " \
150152
"free up more memory.") \

src/hotspot/share/jfr/recorder/jfrRecorder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2026, 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
@@ -239,7 +239,7 @@ bool JfrRecorder::on_create_vm_2() {
239239
}
240240

241241
bool JfrRecorder::on_create_vm_3() {
242-
JVMTI_ONLY( assert(JvmtiEnvBase::get_phase() == JVMTI_PHASE_LIVE, "invalid init sequence"); )
242+
JVMTI_ONLY( assert(JvmtiEnvBase::get_phase() == JVMTI_PHASE_LIVE, "invalid init sequence, phase is %d", (int)JvmtiEnvBase::get_phase()); )
243243
return CDSConfig::is_dumping_archive() || launch_command_line_recordings(JavaThread::current());
244244
}
245245

0 commit comments

Comments
 (0)