Skip to content

Commit ac35fa7

Browse files
author
David Simms
committed
Merge jdk
Merge jdk-26+3
2 parents 7d4f8fe + 08b1fa4 commit ac35fa7

File tree

372 files changed

+12975
-7541
lines changed

Some content is hidden

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

372 files changed

+12975
-7541
lines changed

make/autoconf/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2012, 2025, Oracle and/or its affiliates. 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
@@ -366,7 +366,7 @@ EOT
366366
367367
# Print additional help, e.g. a list of toolchains and JVM features.
368368
# This must be done by the autoconf script.
369-
( CONFIGURE_PRINT_ADDITIONAL_HELP=true . $generated_script PRINTF=printf )
369+
( CONFIGURE_PRINT_ADDITIONAL_HELP=true . $generated_script PRINTF=printf ECHO=echo )
370370
371371
cat <<EOT
372372

make/jdk/src/classes/build/tools/cldrconverter/Bundle.java

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,10 @@ private void handleDateTimeFormatPatterns(String[] patternKeys, Map<String, Obje
542542
if (pattern != null) {
543543
// Perform date-time format pattern conversion which is
544544
// applicable to both SimpleDateFormat and j.t.f.DateTimeFormatter.
545-
String transPattern = translateDateFormatLetters(calendarType, pattern, this::convertDateTimePatternLetter);
545+
String transPattern = translateDateFormatLetters(calendarType, key, pattern, this::convertDateTimePatternLetter);
546546
dateTimePatterns.add(i, transPattern);
547547
// Additionally, perform SDF specific date-time format pattern conversion
548-
sdfPatterns.add(i, translateDateFormatLetters(calendarType, transPattern, this::convertSDFLetter));
548+
sdfPatterns.add(i, translateDateFormatLetters(calendarType, key, transPattern, this::convertSDFLetter));
549549
} else {
550550
dateTimePatterns.add(i, null);
551551
sdfPatterns.add(i, null);
@@ -568,7 +568,7 @@ private void handleDateTimeFormatPatterns(String[] patternKeys, Map<String, Obje
568568
}
569569
}
570570

571-
private String translateDateFormatLetters(CalendarType calendarType, String cldrFormat, ConvertDateTimeLetters converter) {
571+
private String translateDateFormatLetters(CalendarType calendarType, String patternKey, String cldrFormat, ConvertDateTimeLetters converter) {
572572
String pattern = cldrFormat;
573573
int length = pattern.length();
574574
boolean inQuote = false;
@@ -587,7 +587,7 @@ private String translateDateFormatLetters(CalendarType calendarType, String cldr
587587
if (nextc == '\'') {
588588
i++;
589589
if (count != 0) {
590-
converter.convert(calendarType, lastLetter, count, jrePattern);
590+
converter.convert(calendarType, patternKey, lastLetter, count, jrePattern);
591591
lastLetter = 0;
592592
count = 0;
593593
}
@@ -597,7 +597,7 @@ private String translateDateFormatLetters(CalendarType calendarType, String cldr
597597
}
598598
if (!inQuote) {
599599
if (count != 0) {
600-
converter.convert(calendarType, lastLetter, count, jrePattern);
600+
converter.convert(calendarType, patternKey, lastLetter, count, jrePattern);
601601
lastLetter = 0;
602602
count = 0;
603603
}
@@ -614,7 +614,7 @@ private String translateDateFormatLetters(CalendarType calendarType, String cldr
614614
}
615615
if (!(c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z')) {
616616
if (count != 0) {
617-
converter.convert(calendarType, lastLetter, count, jrePattern);
617+
converter.convert(calendarType, patternKey, lastLetter, count, jrePattern);
618618
lastLetter = 0;
619619
count = 0;
620620
}
@@ -627,7 +627,7 @@ private String translateDateFormatLetters(CalendarType calendarType, String cldr
627627
count++;
628628
continue;
629629
}
630-
converter.convert(calendarType, lastLetter, count, jrePattern);
630+
converter.convert(calendarType, patternKey, lastLetter, count, jrePattern);
631631
lastLetter = c;
632632
count = 1;
633633
}
@@ -637,7 +637,7 @@ private String translateDateFormatLetters(CalendarType calendarType, String cldr
637637
}
638638

639639
if (count != 0) {
640-
converter.convert(calendarType, lastLetter, count, jrePattern);
640+
converter.convert(calendarType, patternKey, lastLetter, count, jrePattern);
641641
}
642642
if (cldrFormat.contentEquals(jrePattern)) {
643643
return cldrFormat;
@@ -661,7 +661,7 @@ private String toMetaZoneKey(String tzKey) {
661661
* on the support given by the SimpleDateFormat and the j.t.f.DateTimeFormatter
662662
* for date-time formatting.
663663
*/
664-
private void convertDateTimePatternLetter(CalendarType calendarType, char cldrLetter, int count, StringBuilder sb) {
664+
private void convertDateTimePatternLetter(CalendarType calendarType, String patternKey, char cldrLetter, int count, StringBuilder sb) {
665665
switch (cldrLetter) {
666666
case 'u':
667667
case 'U':
@@ -683,7 +683,7 @@ private void convertDateTimePatternLetter(CalendarType calendarType, char cldrLe
683683
* Perform a conversion of CLDR date-time format pattern letter which is
684684
* specific to the SimpleDateFormat.
685685
*/
686-
private void convertSDFLetter(CalendarType calendarType, char cldrLetter, int count, StringBuilder sb) {
686+
private void convertSDFLetter(CalendarType calendarType, String patternKey, char cldrLetter, int count, StringBuilder sb) {
687687
switch (cldrLetter) {
688688
case 'G':
689689
if (calendarType != CalendarType.GREGORIAN) {
@@ -722,6 +722,17 @@ private void convertSDFLetter(CalendarType calendarType, char cldrLetter, int co
722722
appendN('z', count, sb);
723723
break;
724724

725+
case 'y':
726+
// If the style is FULL/LONG for a Japanese Calendar, make the
727+
// count == 4 for Gan-nen
728+
if (calendarType == CalendarType.JAPANESE &&
729+
(patternKey.contains("full-") ||
730+
patternKey.contains("long-"))) {
731+
count = 4;
732+
}
733+
appendN(cldrLetter, count, sb);
734+
break;
735+
725736
case 'Z':
726737
if (count == 4 || count == 5) {
727738
sb.append("XXX");
@@ -767,6 +778,7 @@ private void handleSkeletonPatterns(Map<String, Object> myMap, CalendarType cale
767778
.collect(Collectors.toMap(
768779
e -> calendarPrefix + e.getKey(),
769780
e -> translateDateFormatLetters(calendarType,
781+
e.getKey(),
770782
(String)e.getValue(),
771783
this::convertDateTimePatternLetter)
772784
))
@@ -775,7 +787,7 @@ private void handleSkeletonPatterns(Map<String, Object> myMap, CalendarType cale
775787

776788
@FunctionalInterface
777789
private interface ConvertDateTimeLetters {
778-
void convert(CalendarType calendarType, char cldrLetter, int count, StringBuilder sb);
790+
void convert(CalendarType calendarType, String patternKey, char cldrLetter, int count, StringBuilder sb);
779791
}
780792

781793
/**

make/test/JtregNativeJdk.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ BUILD_JDK_JTREG_LIBRARIES_JDK_LIBS_libGetXSpace := java.base:libjava
6262
ifeq ($(call isTargetOs, windows), true)
6363
BUILD_JDK_JTREG_EXCLUDE += libDirectIO.c libInheritedChannel.c \
6464
libExplicitAttach.c libImplicitAttach.c \
65-
exelauncher.c
65+
exelauncher.c libFDLeaker.c exeFDLeakTester.c
6666

6767
BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeNullCallerTest := $(LIBCXX)
6868
BUILD_JDK_JTREG_EXECUTABLES_LIBS_exerevokeall := advapi32.lib

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ void MachEpilogNode::emit(C2_MacroAssembler *masm, PhaseRegAlloc *ra_) const {
18501850
code_stub = &stub->entry();
18511851
}
18521852
__ relocate(relocInfo::poll_return_type);
1853-
__ safepoint_poll(*code_stub, true /* at_return */, false /* acquire */, true /* in_nmethod */);
1853+
__ safepoint_poll(*code_stub, true /* at_return */, true /* in_nmethod */);
18541854
}
18551855
}
18561856

src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ void LIR_Assembler::return_op(LIR_Opr result, C1SafepointPollStub* code_stub) {
527527

528528
code_stub->set_safepoint_offset(__ offset());
529529
__ relocate(relocInfo::poll_return_type);
530-
__ safepoint_poll(*code_stub->entry(), true /* at_return */, false /* acquire */, true /* in_nmethod */);
530+
__ safepoint_poll(*code_stub->entry(), true /* at_return */, true /* in_nmethod */);
531531
__ ret(lr);
532532
}
533533

src/hotspot/cpu/aarch64/c1_globals_aarch64.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -43,15 +43,15 @@ define_pd_global(intx, CompileThreshold, 1500 );
4343

4444
define_pd_global(intx, OnStackReplacePercentage, 933 );
4545
define_pd_global(intx, NewSizeThreadIncrease, 4*K );
46-
define_pd_global(intx, InitialCodeCacheSize, 160*K);
47-
define_pd_global(intx, ReservedCodeCacheSize, 32*M );
48-
define_pd_global(intx, NonProfiledCodeHeapSize, 13*M );
49-
define_pd_global(intx, ProfiledCodeHeapSize, 14*M );
50-
define_pd_global(intx, NonNMethodCodeHeapSize, 5*M );
46+
define_pd_global(size_t, InitialCodeCacheSize, 160*K);
47+
define_pd_global(size_t, ReservedCodeCacheSize, 32*M );
48+
define_pd_global(size_t, NonProfiledCodeHeapSize, 13*M );
49+
define_pd_global(size_t, ProfiledCodeHeapSize, 14*M );
50+
define_pd_global(size_t, NonNMethodCodeHeapSize, 5*M );
5151
define_pd_global(bool, ProfileInterpreter, false);
52-
define_pd_global(intx, CodeCacheExpansionSize, 32*K );
53-
define_pd_global(uintx, CodeCacheMinBlockLength, 1);
54-
define_pd_global(uintx, CodeCacheMinimumUseSpace, 400*K);
52+
define_pd_global(size_t, CodeCacheExpansionSize, 32*K );
53+
define_pd_global(size_t, CodeCacheMinBlockLength, 1);
54+
define_pd_global(size_t, CodeCacheMinimumUseSpace, 400*K);
5555
define_pd_global(bool, NeverActAsServerClassMachine, true );
5656
define_pd_global(uint64_t,MaxRAM, 1ULL*G);
5757
define_pd_global(bool, CICompileOSR, true );

src/hotspot/cpu/aarch64/c2_globals_aarch64.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -51,8 +51,8 @@ define_pd_global(intx, NewSizeThreadIncrease, ScaleForWordSize(4*K));
5151
define_pd_global(intx, LoopUnrollLimit, 60);
5252
define_pd_global(intx, LoopPercentProfileLimit, 10);
5353
// InitialCodeCacheSize derived from specjbb2000 run.
54-
define_pd_global(intx, InitialCodeCacheSize, 2496*K); // Integral multiple of CodeCacheExpansionSize
55-
define_pd_global(intx, CodeCacheExpansionSize, 64*K);
54+
define_pd_global(size_t, InitialCodeCacheSize, 2496*K); // Integral multiple of CodeCacheExpansionSize
55+
define_pd_global(size_t, CodeCacheExpansionSize, 64*K);
5656

5757
// Ergonomics related flags
5858
define_pd_global(uint64_t,MaxRAM, 128ULL*G);
@@ -69,12 +69,12 @@ define_pd_global(bool, SuperWordLoopUnrollAnalysis, true);
6969
define_pd_global(uint, SuperWordStoreToLoadForwardingFailureDetection, 8);
7070
define_pd_global(bool, IdealizeClearArrayNode, true);
7171

72-
define_pd_global(intx, ReservedCodeCacheSize, 48*M);
73-
define_pd_global(intx, NonProfiledCodeHeapSize, 21*M);
74-
define_pd_global(intx, ProfiledCodeHeapSize, 22*M);
75-
define_pd_global(intx, NonNMethodCodeHeapSize, 5*M );
76-
define_pd_global(uintx, CodeCacheMinBlockLength, 6);
77-
define_pd_global(uintx, CodeCacheMinimumUseSpace, 400*K);
72+
define_pd_global(size_t, ReservedCodeCacheSize, 48*M);
73+
define_pd_global(size_t, NonProfiledCodeHeapSize, 21*M);
74+
define_pd_global(size_t, ProfiledCodeHeapSize, 22*M);
75+
define_pd_global(size_t, NonNMethodCodeHeapSize, 5*M );
76+
define_pd_global(size_t, CodeCacheMinBlockLength, 6);
77+
define_pd_global(size_t, CodeCacheMinimumUseSpace, 400*K);
7878

7979
// Ergonomics related flags
8080
define_pd_global(bool, NeverActAsServerClassMachine, false);

src/hotspot/cpu/aarch64/compiledIC_aarch64.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,15 @@ void CompiledDirectCall::set_to_interpreted(const methodHandle& callee, address
9090
= nativeMovConstReg_at(stub + NativeInstruction::instruction_size);
9191

9292
#ifdef ASSERT
93-
NativeGeneralJump* jump = nativeGeneralJump_at(method_holder->next_instruction_address());
93+
NativeJump* jump = MacroAssembler::codestub_branch_needs_far_jump()
94+
? nativeGeneralJump_at(method_holder->next_instruction_address())
95+
: nativeJump_at(method_holder->next_instruction_address());
9496
verify_mt_safe(callee, entry, method_holder, jump);
9597
#endif
9698

9799
// Update stub.
98100
method_holder->set_data((intptr_t)callee());
99-
NativeGeneralJump::insert_unconditional(method_holder->next_instruction_address(), entry);
101+
MacroAssembler::pd_patch_instruction(method_holder->next_instruction_address(), entry);
100102
ICache::invalidate_range(stub, to_interp_stub_size());
101103
// Update jump to call.
102104
set_destination_mt_safe(stub);

src/hotspot/cpu/aarch64/downcallLinker_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void DowncallLinker::StubGenerator::generate() {
289289

290290
__ verify_sve_vector_length(tmp1);
291291

292-
__ safepoint_poll(L_safepoint_poll_slow_path, true /* at_return */, true /* acquire */, false /* in_nmethod */, tmp1);
292+
__ safepoint_poll(L_safepoint_poll_slow_path, true /* at_return */, false /* in_nmethod */, tmp1);
293293

294294
__ ldrw(tmp1, Address(rthread, JavaThread::suspend_flags_offset()));
295295
__ cbnzw(tmp1, L_safepoint_poll_slow_path);

src/hotspot/cpu/aarch64/globals_aarch64.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap nulls
3838

3939
define_pd_global(bool, DelayCompilerStubsGeneration, COMPILER2_OR_JVMCI);
4040

41-
define_pd_global(uintx, CodeCacheSegmentSize, 64);
41+
define_pd_global(size_t, CodeCacheSegmentSize, 64);
4242
define_pd_global(intx, CodeEntryAlignment, 64);
4343
define_pd_global(intx, OptoLoopAlignment, 16);
4444

0 commit comments

Comments
 (0)