Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge tag 'jdk-21.0.6+7' into dragonwell_standard-21.0.6.0.6+7 #170

Open
wants to merge 245 commits into
base: standard
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
669c2b4
8339080: Bump update version for OpenJDK: jdk-21.0.6
GoeLin Aug 28, 2024
b0da5c7
8338110: Exclude Fingerprinter::do_type from ubsan checks
MBaesken Aug 28, 2024
eb80936
8316895: SeenThread::print_action_queue called on a null pointer
MBaesken Aug 28, 2024
e939761
8336854: CAInterop.java#actalisauthenticationrootca conflicted with /…
Aug 29, 2024
fb72870
8319970: AArch64: enable tests compiler/intrinsics/Test(Long|Integer)…
cost0much Aug 29, 2024
38e8bfe
8334567: [test] runtime/os/TestTracePageSizes move ppc handling
MBaesken Aug 30, 2024
922360f
8338058: map_or_reserve_memory_aligned Windows enhance remap assertion
MBaesken Aug 30, 2024
d78c446
8337780: RISC-V: C2: Change C calling convention for sp to NS
RealFYang Sep 2, 2024
427dba1
Merge
GoeLin Sep 5, 2024
3c6b637
8338101: remove old remap assertion in map_or_reserve_memory_aligned …
MBaesken Sep 5, 2024
0738937
8339248: RISC-V: Remove li64 macro assembler routine and related code
zifeihan Sep 5, 2024
a7e928c
8317575: AArch64: C2_MacroAssembler::fast_lock uses rscratch1 for cmp…
Sep 5, 2024
b0cd38b
8337331: crash: pinned virtual thread will lead to jvm crash when run…
Sep 6, 2024
d71aa19
8326611: Clean up vmTestbase/nsk/stress/stack tests
Sep 10, 2024
fbdaf08
8336413: gtk headers : Fix typedef redeclaration of GMainContext and …
Sep 10, 2024
c66ea3d
8328723: IP Address error when client enables HTTPS endpoint check on…
Sep 10, 2024
40fe61a
8331864: Update Public Suffix List to 1cbd6e7
GoeLin Sep 10, 2024
ad5656f
8338748: [17u,21u] Test Disconnect.java compile error: cannot find sy…
Sep 10, 2024
cf35ed5
8338402: GHA: some of bundles may not get removed
zzambers Sep 10, 2024
b869fc7
8331393: AArch64: u32 _partial_subtype_ctr loaded/stored as 64
Sep 10, 2024
347ef64
Merge
GoeLin Sep 11, 2024
f280507
8339548: GHA: RISC-V: Use Debian snapshot archive for bootstrap
RealFYang Sep 12, 2024
29b65ab
8312518: [macos13] setFullScreenWindow() shows black screen on macOS …
mrserb Sep 12, 2024
5162660
8328665: serviceability/jvmti/vthread/PopFrameTest failed with a timeout
GoeLin Sep 13, 2024
c82c70d
8296787: Unify debug printing format of X.509 cert serial numbers
GoeLin Sep 16, 2024
967a3cd
8328303: 3 JDI tests timed out with UT enabled
GoeLin Sep 16, 2024
fee1d96
8326898: NSK tests should listen on loopback addresses only
GoeLin Sep 16, 2024
58cc0a2
8321550: Update several runtime/cds tests to use vm flags or mark as …
GoeLin Sep 16, 2024
2e3ef5f
8332340: Add JavacBench as a test case for CDS
GoeLin Sep 16, 2024
3637991
8332724: x86 MacroAssembler may over-align code
GoeLin Sep 16, 2024
3fc06a2
8333108: Update vmTestbase/nsk/share/DebugeeProcess.java to don't use…
GoeLin Sep 16, 2024
bbe7bbc
8335449: runtime/cds/DeterministicDump.java fails with File content d…
GoeLin Sep 16, 2024
c19857a
8296972: [macos13] java/awt/Frame/MaximizedToIconified/MaximizedToIco…
Sep 16, 2024
3140491
8337320: Update ProblemList.txt with tests known to fail on XWayland
Sep 16, 2024
e11e038
8028127: Regtest java/security/Security/SynchronizedAccess.java is in…
Sep 16, 2024
7a97e31
8337966: (fs) Files.readAttributes fails with Operation not permitted…
Sep 16, 2024
a4626db
8320192: SHAKE256 does not work correctly if n >= 137
Sep 17, 2024
fe35711
Merge
GoeLin Sep 18, 2024
466b87a
8333098: ubsan: bytecodeInfo.cpp:318:59: runtime error: division by zero
MBaesken Sep 18, 2024
77331ae
8338109: java/awt/Mouse/EnterExitEvents/ResizingFrameTest.java duplic…
Sep 19, 2024
2c22d28
8311301: MethodExitTest may fail with stack buffer overrun
Sep 19, 2024
da4d2c5
8339644: Improve parsing of Day/Month in tzdata rules
GoeLin Sep 19, 2024
9ac04f1
8321474: TestAutoCreateSharedArchiveUpgrade.java should be updated wi…
GoeLin Sep 20, 2024
91a2eba
8330621: Make 5 compiler tests use ProcessTools.executeProcess
GoeLin Sep 20, 2024
65907ff
8334562: Automate com/sun/security/auth/callback/TextCallbackHandler/…
GoeLin Sep 20, 2024
44b6aca
8335267: [XWayland] move screencast tokens from .awt to .java folder
GoeLin Sep 20, 2024
b726436
8339591: Mark jdk/jshell/ExceptionMessageTest.java intermittent
MBaesken Sep 20, 2024
816706c
8322166: Files.isReadable/isWritable/isExecutable expensive when file…
toddjonker Sep 20, 2024
0a7aa3d
8320586: update manual test/jdk/TEST.groups
Sep 23, 2024
ad78384
8321616: Retire binary test vectors in test/jdk/java/util/zip/ZipFile
GoeLin Sep 23, 2024
1dd7b65
8324861: Exceptions::wrap_dynamic_exception() doesn't have ResourceMark
GoeLin Sep 23, 2024
afb6047
8318105: [jmh] the test java.security.HSS failed with 2 active threads
GoeLin Sep 23, 2024
7d52b71
8326100: DeflaterDictionaryTests should use Deflater.getBytesWritten …
GoeLin Sep 23, 2024
76fde39
8332777: Update JCStress test suite
GoeLin Sep 23, 2024
a5e7c32
8339416: [s390x] Provide implementation for resolve_global_jobject
offamitkumar Sep 23, 2024
87aa1dd
8326121: vmTestbase/gc/g1/unloading/tests/unloading_keepRef_rootClass…
GoeLin Sep 23, 2024
df2d31f
8325399: Add tests for virtual threads doing Selector operations
GoeLin Sep 24, 2024
b0fb742
8335530: Java file extension missing in AuthenticatorTest
GoeLin Sep 24, 2024
b5c3d76
8336240: Test com/sun/crypto/provider/Cipher/DES/PerformanceTest.java…
GoeLin Sep 24, 2024
41f7936
8335172: Add manual steps to run security/auth/callback/TextCallbackH…
GoeLin Sep 24, 2024
ead7e5f
8339384: Unintentional IOException in jdk.jdi module when JDWP end of…
GoeLin Sep 24, 2024
5fa98ab
8309218: java/util/concurrent/locks/Lock/OOMEInAQS.java still times o…
GoeLin Sep 24, 2024
37f576d
8339741: RISC-V: C ABI breakage for integer on stack
robehn Sep 24, 2024
7cdb3da
8339731: java.desktop/share/classes/javax/swing/text/html/default.css…
MBaesken Sep 25, 2024
4539e46
8340230: Tests crash: assert(is_in_encoding_range || k->is_interface(…
TheRealMDoerr Sep 25, 2024
f181fc6
8320665: update jdk_core at open/test/jdk/TEST.groups
Sep 26, 2024
cb81169
8334405: java/nio/channels/Selector/SelectWithConsumer.java#id0 faile…
GoeLin Sep 26, 2024
3b2b321
8331391: Enhance the keytool code by invoking the buildTrustedCerts m…
GoeLin Sep 26, 2024
5be5942
6942632: Hotspot should be able to use more than 64 logical processor…
swesonga Sep 26, 2024
c66748c
8340815: Add SECURITY.md file
gdams Sep 27, 2024
c8b8f72
8340383: VM issues warning failure to find kernel32.dll on Windows na…
gdams Sep 27, 2024
e756145
8339725: Concurrent GC crashed due to GetMethodDeclaringClass
Sep 30, 2024
0943249
8321940: Improve CDSHeapVerifier in handling of interned strings
Sep 30, 2024
aa6cdd7
8324841: PKCS11 tests still skip execution
GoeLin Oct 1, 2024
dd13bf6
8338924: C1: assert(0 <= i && i < _len) failed: illegal index 5 for l…
GoeLin Oct 1, 2024
cba5a24
Merge
GoeLin Oct 2, 2024
b1cd88a
8340657: [PPC64] SA determines wrong unextendedSP
TheRealMDoerr Oct 3, 2024
3c46e99
8307383: Enhance DTLS connections
Jul 4, 2024
93bdd79
8311208: Improve CDS Support
Aug 16, 2024
846b6eb
8328286: Enhance HTTP client
Aug 23, 2024
d953c9f
8328544: Improve handling of vectorization
martinuy Aug 14, 2024
be1607d
8335713: Enhance vectorization analysis
martinuy Sep 14, 2024
0832548
8328726: Better Kerberos support
May 10, 2024
c673c52
8340387: Update OS detection code to recognize Windows Server 2025
MBaesken Oct 4, 2024
e241385
8340418: GHA: MacOS AArch64 bundles can be removed prematurely
shipilev Oct 4, 2024
2058719
8331446: Improve deserialization support
Aug 13, 2024
90517f5
8332644: Improve graph optimizations
franferrax Sep 17, 2024
5762460
8340804: doc/building.md update Xcode instructions to note that full …
gdams Oct 5, 2024
0755f5c
8339560: Unaddressed comments during code review of JDK-8337664
GoeLin Oct 7, 2024
115b04c
8338380: Update TLSCommon/interop/AbstractServer to specify an interf…
GoeLin Oct 8, 2024
11dad92
8340007: Refactor KeyEvent/FunctionKeyTest.java
GoeLin Oct 8, 2024
73c34be
8340923: The class LogSelection copies uninitialized memory
MBaesken Oct 9, 2024
7fd462f
8339648: ZGC: Division by zero in rule_major_allocation_rate
MBaesken Oct 9, 2024
978075f
8339487: ProcessHandleImpl os_getChildren sysctl call - retry in case…
MBaesken Oct 9, 2024
0083bcd
8341674: [21u] Remove designator DEFAULT_PROMOTED_VERSION_PRE=ea for …
gnu-andrew Oct 7, 2024
b002ba6
8334719: (se) Deferred close of SelectableChannel may result in a Sel…
GoeLin Oct 11, 2024
868168c
8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.ht…
GoeLin Oct 11, 2024
6967a6b
8313878: Exclude two compiler/rtm/locking tests on ppc64le
GoeLin Oct 11, 2024
10665ba
8341562: RISC-V: Generate comments in -XX:+PrintInterpreter to link t…
Oct 11, 2024
21fec60
8332461: ubsan : dependencies.cpp:906:3: runtime error: load of value…
offamitkumar Oct 11, 2024
3efdcde
8340590: RISC-V: C2: Small improvement to vector gather load and scat…
zifeihan Oct 11, 2024
dfcd8d2
8341989: [21u] Back out JDK-8327501 and JDK-8328366
RealCLanger Oct 11, 2024
eb6a23a
8337876: [IR Framework] Add support for IR tests with @Stable
shipilev Oct 14, 2024
8648dcc
8321299: runtime/logging/ClassLoadUnloadTest.java doesn't reliably tr…
GoeLin Oct 14, 2024
b7efb79
8321543: Update NSS to version 3.96
GoeLin Oct 14, 2024
5f34b72
8337067: Test runtime/classFileParserBug/Bad_NCDFE_Msg.java won't com…
GoeLin Oct 14, 2024
21d7353
8340008: KeyEvent/KeyTyped/Numpad1KeyTyped.java has 15 seconds timeout
GoeLin Oct 14, 2024
4de0f30
8323688: C2: Fix UB of jlong overflow in PhaseIdealLoop::is_counted_l…
GoeLin Oct 14, 2024
eaf1f67
8340632: ProblemList java/nio/channels/DatagramChannel/ for Macos
GoeLin Oct 14, 2024
9e582fc
8319973: AArch64: Save and restore FPCR in the call stub
Oct 14, 2024
62e0147
Merge
GoeLin Oct 16, 2024
e5dfeb1
8342063: [21u][aix] Backport introduced redundant line in ProblemList
GoeLin Oct 16, 2024
f9070df
8341146: RISC-V: Unnecessary fences used for load-acquire in template…
zifeihan Oct 16, 2024
8e19c8f
8339386: Assertion on AIX - original PC must be in the main code sect…
TheRealMDoerr Oct 16, 2024
f766080
8320397: RISC-V: Avoid passing t0 as temp register to MacroAssembler:…
zifeihan Oct 16, 2024
fbfe11f
8341024: [test] build/AbsPathsInImage.java fails with OOM when using …
MBaesken Oct 17, 2024
6ed940b
8320682: [AArch64] C1 compilation fails with "Field too big for insn"
Oct 17, 2024
70eff9d
8340109: Ubsan: ciEnv.cpp:1660:65: runtime error: member call on null…
MBaesken Oct 17, 2024
f19e69a
8342014: RISC-V: ZStoreBarrierStubC2 clobbers rflags
zifeihan Oct 17, 2024
dd4e0ae
8341261: Tests assume UnlockExperimentalVMOptions is disabled by default
toddjonker Oct 17, 2024
fe4b0fa
8332866: Crash in ImageIO JPEG decoding when MEM_STATS in enabled
Oct 17, 2024
27d2abe
8320892: AArch64: Restore FPU control state after JNI
Oct 17, 2024
3fc07f2
8341688: Aarch64: Generate comments in -XX:+PrintInterpreter to link …
Oct 17, 2024
5013360
8341806: Gcc version detection failure on Alinux3
Oct 17, 2024
a2f0ddb
8325762: Use PassFailJFrame.Builder.splitUI() in PrintLatinCJKTest.java
GoeLin Oct 21, 2024
c62b0a5
8325610: CTW: Add StressIncrementalInlining to stress options
Oct 21, 2024
b010fdc
8340398: [JVMCI] Unintuitive behavior of UseJVMCICompiler option
toddjonker Oct 21, 2024
8a35e8f
8341997: Tests create files in src tree instead of scratch dir
Oct 21, 2024
42b3607
8342669: [21u] Fix TestArrayAllocatorMallocLimit after backport of JD…
GoeLin Oct 22, 2024
9308dec
8328402: Implement pausing functionality for the PassFailJFrame
GoeLin Oct 22, 2024
da87df7
8311656: Shenandoah: Unused ShenandoahSATBAndRemarkThreadsClosure::_c…
krk Oct 22, 2024
826184c
8323562: SaslInputStream.read() may return wrong value
Oct 23, 2024
01e9dbd
8328242: Add a log area to the PassFailJFrame
toshiogata Oct 23, 2024
9da2208
8333824: Unused ClassValue in VarHandles
Oct 24, 2024
f70c4bd
8316428: G1: Nmethod count statistics only count last code root set i…
jianglizhou Oct 25, 2024
9dbdaea
8225220: When the Tab Policy is checked,the scroll button direction d…
GoeLin Oct 25, 2024
0dc59f8
8322754: click JComboBox when dialog about to close causes IllegalCom…
GoeLin Oct 25, 2024
d221709
8320673: PageFormat/CustomPaper.java has no Pass/Fail buttons; multip…
GoeLin Oct 25, 2024
8818eb4
8325506: Ensure randomness is only read from provided SecureRandom ob…
GoeLin Oct 25, 2024
01eb688
8195675: Call to insertText with single character from custom Input M…
Oct 28, 2024
c5be449
8328379: Convert URLDragTest.html applet test to main
toshiogata Oct 29, 2024
9ea9971
8334560: [PPC64]: postalloc_expand_java_dynamic_call_sched does not c…
reinrich Oct 29, 2024
7dc0f7a
8342701: [PPC64] TestOSRLotsOfLocals.java crashes
TheRealMDoerr Oct 29, 2024
c37acdb
8313374: --enable-ccache's CCACHE_BASEDIR breaks builds
Oct 30, 2024
4845d80
8283214: [macos] Screen magnifier does not show the magnified text fo…
GoeLin Oct 30, 2024
bcd0958
8315701: [macos] Regression: KeyEvent has different keycode on differ…
GoeLin Oct 30, 2024
e64c4f2
8342962: [s390x] TestOSRLotsOfLocals.java crashes
offamitkumar Oct 30, 2024
f1b656d
8337851: Some tests have name which confuse jtreg
toshiogata Oct 30, 2024
fa58ee0
8338751: ConfigureNotify behavior has changed in KWin 6.2
zzag Oct 30, 2024
c3cb940
8342765: [21u] RTM tests assume UnlockExperimentalVMOptions is disabl…
toddjonker Oct 30, 2024
86a7bab
8325851: Hide PassFailJFrame.Builder constructor
GoeLin Oct 31, 2024
c1a3c4f
8335709: C2: assert(!loop->is_member(get_loop(useblock))) failed: mus…
GoeLin Oct 31, 2024
d7c85b1
8333317: Test sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java fa…
GoeLin Oct 31, 2024
b0b4699
8332901: Select{Current,New}ItemTest.java for Choice don't open popup…
GoeLin Oct 31, 2024
9f85fe3
8340210: Add positionTestUI() to PassFailJFrame.Builder
GoeLin Oct 31, 2024
54d8f60
8338759: Add extra diagnostic to java/net/InetAddress/ptr/Lookup.java
GoeLin Oct 31, 2024
ddc42a1
8340306: Add border around instructions in PassFailJFrame
GoeLin Oct 31, 2024
15084f0
8340308: PassFailJFrame: Make rows default to number of lines in inst…
GoeLin Oct 31, 2024
6ad61fa
8340461: Amend description for logArea
GoeLin Oct 31, 2024
97ab46f
8340365: Position the first window of a window list
GoeLin Oct 31, 2024
17179fd
8340684: Reading from an input stream backed by a closed ZipFile has …
GoeLin Oct 31, 2024
d506e23
8340899: Remove wildcard bound in PositionWindows.positionTestWindows
GoeLin Oct 31, 2024
83955c9
8339787: Add some additional diagnostic output to java/net/ipv6tests/…
GoeLin Oct 31, 2024
ec24039
8340466: Add description for PassFailJFrame constructors
GoeLin Oct 31, 2024
ed797f7
8342578: GHA: RISC-V: Bootstrap using Debian snapshot is still failing
RealFYang Nov 1, 2024
eb8d5fe
8319640: ClassicFormat::parseObject (from DateTimeFormatter) does not…
Nov 1, 2024
93dc591
8333754: Add a Test against ECDSA and ECDH NIST Test vector
GoeLin Nov 4, 2024
3d20298
8334057: JLinkReproducibleTest.java support receive test.tool.vm.opts
GoeLin Nov 4, 2024
72eaaa2
8317116: Provide layouts for multiple test UI in PassFailJFrame
GoeLin Nov 4, 2024
ae46724
8340785: Update description of PassFailJFrame and samples
GoeLin Nov 4, 2024
b08fa9a
8337066: Repeated call of StringBuffer.reverse with double byte strin…
GoeLin Nov 4, 2024
6b33c1c
8340214: C2 compilation asserts with "no node with a side effect" in …
GoeLin Nov 4, 2024
c17e009
8342496: C2/Shenandoah: SEGV in compiled code when running jcstress
rwestrel Nov 4, 2024
34021e9
8333728: ubsan: shenandoahFreeSet.cpp:1347:24: runtime error: divisio…
MBaesken Nov 5, 2024
6b4be01
8306446: java/lang/management/ThreadMXBean/Locks.java transient failures
Nov 5, 2024
f4940f6
8339803: Acknowledge case insensitive unambiguous keywords in tzdata …
GoeLin Nov 5, 2024
d7c2775
8340812: LambdaForm customization via MethodHandle::updateForm is not…
GoeLin Nov 5, 2024
498252f
8340799: Add border inside instruction frame in PassFailJFrame
GoeLin Nov 5, 2024
9ce77a2
8341235: Improve default instruction frame title in PassFailJFrame
GoeLin Nov 5, 2024
bb60a42
8342681: TestLoadBypassesNullCheck.java fails improperly specified VM…
Nov 5, 2024
4a5c578
8337810: ProblemList BasicDirectoryModel/LoaderThreadCount.java on Wi…
GoeLin Nov 7, 2024
582a2be
8320575: generic type information lost on mandated parameters of reco…
GoeLin Nov 8, 2024
c09025a
8308429: jvmti/StopThread/stopthrd007 failed with "NoClassDefFoundErr…
GoeLin Nov 11, 2024
14b897a
8325038: runtime/cds/appcds/ProhibitedPackage.java can fail with UseL…
GoeLin Nov 11, 2024
d85992d
8327924: Simplify TrayIconScalingTest.java
GoeLin Nov 11, 2024
b4ab5de
8240343: JDI stopListening/stoplis001 "FAILED: listening is successfu…
GoeLin Nov 11, 2024
bbc006f
8330278: Have SSLSocketTemplate.doClientSide use loopback address
GoeLin Nov 11, 2024
3037409
8332112: Update nsk.share.Log to don't print summary during VM shutdo…
GoeLin Nov 11, 2024
2702f67
8333235: vmTestbase/nsk/jdb/kill/kill001/kill001.java fails with C1
GoeLin Nov 11, 2024
7869713
8335142: compiler/c1/TestTraceLinearScanLevel.java occasionally times…
GoeLin Nov 11, 2024
9bdf2a6
8341927: Replace hardcoded security providers with new test.provider.…
GoeLin Nov 11, 2024
22d5e0d
8343474: [updates] Customize README.md to specifics of update project
GoeLin Nov 13, 2024
d81d301
8342181: Update tests to use stronger Key and Salt size
GoeLin Nov 15, 2024
c5d75ef
8337410: The makefiles should set problemlist and adjust timeout basi…
Nov 15, 2024
d0abff2
8207908: JMXStatusTest.java fails assertion intermittently
Nov 15, 2024
1af737e
8339892: Several security shell tests don't set TESTJAVAOPTS
Nov 15, 2024
6affc09
8340801: Disable ubsan checks in some awt/2d coding
MBaesken Nov 15, 2024
bcc85d9
8318442: java/net/httpclient/ManyRequests2.java fails intermittently …
MBaesken Nov 15, 2024
fa07b3d
8319673: Few security tests ignore VM flags
Nov 18, 2024
5b1a952
8336257: Additional tests in jmxremote/startstop to match on PID not …
Nov 18, 2024
0fd3173
8342188: Update tests to use stronger key parameters and certificates
GoeLin Nov 18, 2024
e1eb341
8342183: Update tests to use stronger algorithms and keys
GoeLin Nov 18, 2024
fe41d0a
8343506: [s390x] multiple test failures with ubsan
offamitkumar Nov 18, 2024
1bfb57d
8342607: Enhance register printing on x86_64 platforms
TheRealMDoerr Nov 18, 2024
38f654e
8343724: [PPC64] Disallow OptoScheduling
TheRealMDoerr Nov 18, 2024
4f6c506
8344164: [s390x] ProblemList hotspot/jtreg/runtime/NMT/VirtualAllocCo…
offamitkumar Nov 18, 2024
f36b3b4
8336911: ZGC: Division by zero in heuristics after JDK-8332717
MBaesken Nov 18, 2024
a4927ca
8338449: ubsan: division by zero in sharedRuntimeTrans.cpp
MBaesken Nov 18, 2024
b9c83b5
8342823: Ubsan: ciEnv.cpp:1614:65: runtime error: member call on null…
MBaesken Nov 18, 2024
948710f
8338389: [JFR] Long strings should be added to the string pool
Nov 18, 2024
4b1365e
8343923: GHA: Switch to Xcode 15 on MacOS AArch64 runners
TheRealMDoerr Nov 18, 2024
324e32f
8321470: ThreadLocal.nextHashCode can be static final
Nov 19, 2024
fd7b6e4
8336640: Shenandoah: Parallel worker use in parallel_heap_region_iterate
Nov 19, 2024
cb9a6a2
8333144: docker tests do not work when ubsan is configured
MBaesken Nov 20, 2024
936b239
8325525: Create jtreg test case for JDK-8325203
GoeLin Nov 20, 2024
f9cd285
8338550: Do libubsan1 installation in test container only if requested
MBaesken Nov 20, 2024
2029e4e
8337826: Improve logging in OCSPTimeout and SimpleOCSPResponder to he…
Nov 20, 2024
3aa59b3
8341722: Fix some warnings as errors when building on Linux with tool…
MBaesken Nov 21, 2024
322fc81
8328619: sun/management/jmxremote/bootstrap/SSLConfigFilePermissionTe…
GoeLin Nov 21, 2024
add7934
8339637: (tz) Update Timezone Data to 2024b
GoeLin Nov 21, 2024
4bbc29c
8319678: Several tests from corelibs areas ignore VM flags
GoeLin Nov 21, 2024
f091c76
8333248: VectorGatherMaskFoldingTest.java failed when maximum vector …
sophia-guo Nov 22, 2024
50fc231
8343884: [s390x] Disallow OptoScheduling
offamitkumar Nov 22, 2024
ef5702e
8316907: Fix nonnull-compare warnings
Nov 22, 2024
bc4abb4
8340552: Harden TzdbZoneRulesCompiler against missing zone names
vieiro Nov 25, 2024
7045581
8316893: Compile without -fno-delete-null-pointer-checks
Nov 25, 2024
149991d
8338344: Test TestPrivilegedMode.java intermittent fails java.lang.No…
Nov 25, 2024
50aa07e
8343877: Test AsyncClose.java intermittent fails - Socket.getInputStr…
Nov 25, 2024
2dd7317
8333427: langtools/tools/javac/newlines/NewLineTest.java is failing o…
tkiriyama Nov 28, 2024
6b9ef8d
8325906: Problemlist vmTestbase/vm/mlvm/meth/stress/compiler/deoptimi…
MBaesken Nov 28, 2024
5ac01de
8345055: [21u] ProblemList failing rtm tests on ppc platforms
MBaesken Nov 28, 2024
a803b5a
8342409: [s390x] C1 unwind_handler fails to unlock synchronized metho…
offamitkumar Nov 28, 2024
046c4aa
8334475: UnsafeIntrinsicsTest.java#ZGenerationalDebug assert(!assert_…
swesonga Nov 28, 2024
92aa77c
8343285: java.lang.Process is unresponsive and CPU usage spikes to 100%
Dec 2, 2024
e569997
8344628: Test TestEnableJVMCIProduct.java run with virtual thread int…
Dec 2, 2024
d383ba5
8322809: SystemModulesMap::classNames and moduleNames arrays do not m…
GoeLin Dec 2, 2024
96a3a88
8344993: [21u] [REDO] Backport JDK-8327501 and JDK-8328366 to JDK 21
martinuy Dec 3, 2024
3f648b4
8342905: Thread.setContextClassloader from thread in FJP commonPool t…
franferrax Dec 3, 2024
e45287d
8335912: Add an operation mode to the jar command when extracting to …
Dec 4, 2024
ba57a23
8330045: Enhance array handling
martinuy Oct 16, 2024
11aed54
8335428: Enhanced Building of Processes
Aug 6, 2024
99da67f
8336564: Enhance mask blit functionality redux
Aug 7, 2024
4bd350f
8339180: Enhanced Building of Processes: Follow-on Issue
martinuy Sep 25, 2024
7069f19
8347010: [21u] Remove designator DEFAULT_PROMOTED_VERSION_PRE=ea for …
RealCLanger Jan 4, 2025
b3be4b6
Merge tag 'jdk-21.0.6+7' into dragonwell_standard-21.0.6.0.6+7
Accelerator1996 Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/workflows/build-cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ jobs:
id: create-sysroot
run: >
sudo debootstrap
--no-merged-usr
--arch=${{ matrix.debian-arch }}
--verbose
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype-dev,libpng-dev
Expand All @@ -151,6 +152,9 @@ jobs:
rm -rf sysroot/usr/{sbin,bin,share}
rm -rf sysroot/usr/lib/{apt,gcc,udev,systemd}
rm -rf sysroot/usr/libexec/gcc
# /{bin,sbin,lib}/ are not symbolic links to /usr/{bin,sbin,lib}/ when debootstrap with --no-merged-usr
rm -rf sysroot/{sbin,bin}
rm -rf sysroot/lib/{udev,systemd}
if: steps.create-sysroot.outcome == 'success' && steps.get-cached-sysroot.outputs.cache-hit != 'true'

- name: 'Remove broken sysroot'
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ jobs:
with:
platform: macos-aarch64
runs-on: 'macos-14'
xcode-toolset-version: '14.3.1'
xcode-toolset-version: '15.4'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.macos-aarch64 == 'true'
Expand Down Expand Up @@ -309,6 +309,7 @@ jobs:
platform: macos-x64
bootjdk-platform: macos-x64
runs-on: macos-13
xcode-toolset-version: '14.3.1'

test-macos-aarch64:
name: macos-aarch64
Expand All @@ -319,6 +320,7 @@ jobs:
platform: macos-aarch64
bootjdk-platform: macos-aarch64
runs-on: macos-14
xcode-toolset-version: '15.4'

test-windows-x64:
name: windows-x64
Expand Down Expand Up @@ -349,6 +351,7 @@ jobs:
- build-windows-aarch64
- test-linux-x64
- test-macos-x64
- test-macos-aarch64
- test-windows-x64

steps:
Expand All @@ -360,7 +363,7 @@ jobs:
-H 'Accept: application/vnd.github+json' \
-H 'Authorization: Bearer ${{ github.token }}' \
-H 'X-GitHub-Api-Version: 2022-11-28' \
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts')"
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
for id in $BUNDLE_ARTIFACT_IDS; do
echo "Removing $id"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ on:
runs-on:
required: true
type: string
xcode-toolset-version:
required: false
type: string

env:
# These are needed to make the MSYS2 bash work properly
Expand Down Expand Up @@ -147,7 +150,7 @@ jobs:
run: |
# On macOS we need to install some dependencies for testing
brew install make
sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer
sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode-toolset-version }}.app/Contents/Developer
# This will make GNU make available as 'make' and not only as 'gmake'
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH
if: runner.os == 'macOS'
Expand Down
2 changes: 1 addition & 1 deletion .jcheck/conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[general]
project=jdk-updates
jbs=JDK
version=21.0.5
version=21.0.6

[checks]
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Welcome to the JDK!
# Welcome to OpenJDK 21 Updates!

The JDK 21 Updates project uses two GitHub repositories.
Updates are continuously developed in the repository [jdk21u-dev](https://github.com/openjdk/jdk21u-dev). This is the repository usually targeted by contributors.
The [jdk21u](https://github.com/openjdk/jdk21u) repository is used for rampdown of the update releases of jdk21u and only accepts critical changes that must make the next release during rampdown. (You probably do not want to target jdk21u).

For more OpenJDK 21 updates specific information such as timelines and contribution guidelines see the [project wiki page](https://wiki.openjdk.org/display/JDKUpdates/JDK+21u/).


For build instructions please see the
[online documentation](https://openjdk.org/groups/build/doc/building.html),
Expand Down
3 changes: 3 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# JDK Vulnerabilities

Please follow the process outlined in the [OpenJDK Vulnerability Policy](https://openjdk.org/groups/vulnerability/report) to disclose vulnerabilities in the JDK.
7 changes: 3 additions & 4 deletions doc/building.html
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,9 @@ <h3 id="clang">clang</h3>
<code>--with-toolchain-type=clang</code>.</p>
<h3 id="apple-xcode">Apple Xcode</h3>
<p>The oldest supported version of Xcode is 8.</p>
<p>You will need the Xcode command line developer tools to be able to
build the JDK. (Actually, <em>only</em> the command line tools are
needed, not the IDE.) The simplest way to install these is to run:</p>
<pre><code>xcode-select --install</code></pre>
<p>You will need to download Xcode either from the App Store or specific
versions can be easily located via the <a
href="https://xcodereleases.com">Xcode Releases</a> website.</p>
<p>When updating Xcode, it is advisable to keep an older version for
building the JDK. To use a specific version of Xcode you have multiple
options:</p>
Expand Down
9 changes: 3 additions & 6 deletions doc/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,9 @@ To use clang instead of gcc on Linux, use `--with-toolchain-type=clang`.

The oldest supported version of Xcode is 8.

You will need the Xcode command line developer tools to be able to build
the JDK. (Actually, *only* the command line tools are needed, not the IDE.)
The simplest way to install these is to run:
```
xcode-select --install
```
You will need to download Xcode either from the App Store or specific versions
can be easily located via the [Xcode Releases](https://xcodereleases.com)
website.

When updating Xcode, it is advisable to keep an older version for building the JDK.
To use a specific version of Xcode you have multiple options:
Expand Down
15 changes: 15 additions & 0 deletions doc/testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ <h1 class="title">Testing the JDK</h1>
<li><a href="#non-us-locale" id="toc-non-us-locale">Non-US
locale</a></li>
<li><a href="#pkcs11-tests" id="toc-pkcs11-tests">PKCS11 Tests</a></li>
<li><a href="#testing-with-alternative-security-providers"
id="toc-testing-with-alternative-security-providers">Testing with
alternative security providers</a></li>
<li><a href="#client-ui-tests" id="toc-client-ui-tests">Client UI
Tests</a></li>
</ul></li>
Expand Down Expand Up @@ -589,6 +592,18 @@ <h3 id="pkcs11-tests">PKCS11 Tests</h3>
JTREG=&quot;JAVA_OPTIONS=-Djdk.test.lib.artifacts.nsslib-linux_aarch64=/path/to/NSS-libs&quot;</code></pre>
<p>For more notes about the PKCS11 tests, please refer to
test/jdk/sun/security/pkcs11/README.</p>
<h3 id="testing-with-alternative-security-providers">Testing with
alternative security providers</h3>
<p>Some security tests use a hardcoded provider for
<code>KeyFactory</code>, <code>Cipher</code>,
<code>KeyPairGenerator</code>, <code>KeyGenerator</code>,
<code>AlgorithmParameterGenerator</code>, <code>KeyAgreement</code>,
<code>Mac</code>, <code>MessageDigest</code>, <code>SecureRandom</code>,
<code>Signature</code>, <code>AlgorithmParameters</code>,
<code>Configuration</code>, <code>Policy</code>, or
<code>SecretKeyFactory</code> objects. Specify the
<code>-Dtest.provider.name=NAME</code> property to use a different
provider for the service(s).</p>
<h3 id="client-ui-tests">Client UI Tests</h3>
<h4 id="system-key-shortcuts">System key shortcuts</h4>
<p>Some Client UI tests use key sequences which may be reserved by the
Expand Down
9 changes: 9 additions & 0 deletions doc/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,15 @@ $ make test TEST="jtreg:sun/security/pkcs11/Secmod/AddTrustedCert.java" \
For more notes about the PKCS11 tests, please refer to
test/jdk/sun/security/pkcs11/README.

### Testing with alternative security providers

Some security tests use a hardcoded provider for `KeyFactory`, `Cipher`,
`KeyPairGenerator`, `KeyGenerator`, `AlgorithmParameterGenerator`,
`KeyAgreement`, `Mac`, `MessageDigest`, `SecureRandom`, `Signature`,
`AlgorithmParameters`, `Configuration`, `Policy`, or `SecretKeyFactory` objects.
Specify the `-Dtest.provider.name=NAME` property to use a different provider for
the service(s).

### Client UI Tests

#### System key shortcuts
Expand Down
34 changes: 31 additions & 3 deletions make/RunTests.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -743,8 +743,6 @@ define SetupRunJtregTestBody
# we may end up with a lot of JVM's
$1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $(AWK) 'BEGIN { print 25 / $$($1_JTREG_JOBS); }')

JTREG_TIMEOUT_FACTOR ?= 4

JTREG_VERBOSE ?= fail,error,summary
JTREG_RETAIN ?= fail,error
JTREG_TEST_THREAD_FACTORY ?=
Expand Down Expand Up @@ -832,6 +830,24 @@ define SetupRunJtregTestBody
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$($1_JTREG_PROBLEM_LIST))
endif

JTREG_ALL_OPTIONS := $$(JTREG_JAVA_OPTIONS) $$(JTREG_VM_OPTIONS)

JTREG_AUTO_PROBLEM_LISTS :=
JTREG_AUTO_TIMEOUT_FACTOR := 4

ifneq ($$(findstring -Xcomp, $$(JTREG_ALL_OPTIONS)), )
JTREG_AUTO_PROBLEM_LISTS += ProblemList-Xcomp.txt
JTREG_AUTO_TIMEOUT_FACTOR := 10
endif

ifneq ($$(findstring -XX:+UseZGC, $$(JTREG_ALL_OPTIONS)), )
ifneq ($$(findstring -XX:-ZGenerational, $$(JTREG_ALL_OPTIONS)), )
JTREG_AUTO_PROBLEM_LISTS += ProblemList-zgc.txt
else
JTREG_AUTO_PROBLEM_LISTS += ProblemList-generational-zgc.txt
endif
endif

ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
# Accept both absolute paths as well as relative to the current test root.
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \
Expand Down Expand Up @@ -863,6 +879,18 @@ define SetupRunJtregTestBody

$$(eval $$(call SetupRunJtregTestCustom, $1))

# SetupRunJtregTestCustom might also adjust JTREG_AUTO_ variables
# so set the final results after setting values from custom setup
ifneq ($$(JTREG_AUTO_PROBLEM_LISTS), )
# Accept both absolute paths as well as relative to the current test root.
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \
$$(JTREG_AUTO_PROBLEM_LISTS) \
$$(addprefix $$($1_TEST_ROOT)/, $$(JTREG_AUTO_PROBLEM_LISTS)) \
))
endif

JTREG_TIMEOUT_FACTOR ?= $$(JTREG_AUTO_TIMEOUT_FACTOR)

clean-outputdirs-$1:
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
$$(RM) -r $$($1_TEST_RESULTS_DIR)
Expand Down
20 changes: 3 additions & 17 deletions make/autoconf/flags-cflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -862,15 +862,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
$1_TOOLCHAIN_CFLAGS="${$1_GCC6_CFLAGS}"

$1_WARNING_CFLAGS_JVM="-Wno-format-zero-length -Wtype-limits -Wuninitialized"
elif test "x$TOOLCHAIN_TYPE" = xclang; then
NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_DELETE_NULL_POINTER_CHECKS_CFLAG],
PREFIX: $3,
IF_FALSE: [
NO_DELETE_NULL_POINTER_CHECKS_CFLAG=
]
)
$1_TOOLCHAIN_CFLAGS="${NO_DELETE_NULL_POINTER_CHECKS_CFLAG}"
fi

if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
Expand Down Expand Up @@ -1008,17 +999,12 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
# $2 - Prefix for compiler variables (either BUILD_ or nothing).
AC_DEFUN([FLAGS_SETUP_GCC6_COMPILER_FLAGS],
[
# These flags are required for GCC 6 builds as undefined behavior in OpenJDK code
# runs afoul of the more aggressive versions of these optimizations.
# Notably, value range propagation now assumes that the this pointer of C++
# member functions is non-null.
NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_DELETE_NULL_POINTER_CHECKS_CFLAG],
PREFIX: $2, IF_FALSE: [NO_DELETE_NULL_POINTER_CHECKS_CFLAG=""])
# This flag is required for GCC 6 builds as undefined behavior in OpenJDK code
# runs afoul of the more aggressive versions of this optimization.
NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_LIFETIME_DSE_CFLAG],
PREFIX: $2, IF_FALSE: [NO_LIFETIME_DSE_CFLAG=""])
$1_GCC6_CFLAGS="${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}"
$1_GCC6_CFLAGS="${NO_LIFETIME_DSE_CFLAG}"
])

AC_DEFUN_ONCE([FLAGS_SETUP_BRANCH_PROTECTION],
Expand Down
8 changes: 7 additions & 1 deletion make/autoconf/toolchain.m4
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,11 @@ AC_DEFUN([TOOLCHAIN_EXTRACT_COMPILER_VERSION],
# Copyright (C) 2013 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# or look like
# gcc (GCC) 10.2.1 20200825 (Alibaba 10.2.1-3.8 2.32)
# Copyright (C) 2020 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1`
# Check that this is likely to be GCC.
$ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null
Expand All @@ -462,7 +467,8 @@ AC_DEFUN([TOOLCHAIN_EXTRACT_COMPILER_VERSION],
COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \
$SED -e 's/ *Copyright .*//'`
COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
$SED -e 's/^.* \(@<:@1-9@:>@<:@0-9@:>@*\.@<:@0-9.@:>@*\)@<:@^0-9.@:>@.*$/\1/'`
$AWK -F ')' '{print [$]2}' | \
$AWK '{print [$]1}'`
elif test "x$TOOLCHAIN_TYPE" = xclang; then
# clang --version output typically looks like
# Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Expand Down
14 changes: 14 additions & 0 deletions make/common/NativeCompilation.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,21 @@ DEPENDENCY_TARGET_SED_PATTERN := \
# The fix-deps-file macro is used to adjust the contents of the generated make
# dependency files to contain paths compatible with make.
#
REWRITE_PATHS_RELATIVE = false
ifeq ($(ALLOW_ABSOLUTE_PATHS_IN_OUTPUT)-$(FILE_MACRO_CFLAGS), false-)
REWRITE_PATHS_RELATIVE = true
endif

# CCACHE_BASEDIR needs fix-deps-file as makefiles use absolute filenames for
# object files while CCACHE_BASEDIR will make ccache relativize all paths for
# its compiler. The compiler then produces relative dependency files.
# make does not know a relative and absolute filename is the same so it will
# ignore such dependencies.
ifneq ($(CCACHE), )
REWRITE_PATHS_RELATIVE = true
endif

ifeq ($(REWRITE_PATHS_RELATIVE), true)
# Need to handle -I flags as both '-Ifoo' and '-I foo'.
MakeCommandRelative = \
$(CD) $(WORKSPACE_ROOT) && \
Expand Down
8 changes: 4 additions & 4 deletions make/conf/version-numbers.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -28,15 +28,15 @@

DEFAULT_VERSION_FEATURE=21
DEFAULT_VERSION_INTERIM=0
DEFAULT_VERSION_UPDATE=5
DEFAULT_VERSION_UPDATE=6
DEFAULT_VERSION_PATCH=0
DEFAULT_VERSION_EXTRA1=0
DEFAULT_VERSION_EXTRA2=0
DEFAULT_VERSION_EXTRA3=0
DEFAULT_VERSION_DATE=2024-10-15
DEFAULT_VERSION_DATE=2025-01-21
DEFAULT_VERSION_CLASSFILE_MAJOR=65 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
DEFAULT_VERSION_CLASSFILE_MINOR=0
DEFAULT_VERSION_DOCS_API_SINCE=11
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="20 21"
DEFAULT_JDK_SOURCE_TARGET_VERSION=21
DEFAULT_PROMOTED_VERSION_PRE=ea
DEFAULT_PROMOTED_VERSION_PRE=
16 changes: 12 additions & 4 deletions make/jdk/src/classes/build/tools/tzdb/TzdbZoneRulesCompiler.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -273,16 +273,16 @@ private void outputFile(Path dstFile, String version,
// link version-region-rules
out.writeShort(builtZones.size());
for (Map.Entry<String, ZoneRules> entry : builtZones.entrySet()) {
int regionIndex = Arrays.binarySearch(regionArray, entry.getKey());
int regionIndex = findRegionIndex(regionArray, entry.getKey());
int rulesIndex = rulesList.indexOf(entry.getValue());
out.writeShort(regionIndex);
out.writeShort(rulesIndex);
}
// alias-region
out.writeShort(links.size());
for (Map.Entry<String, String> entry : links.entrySet()) {
int aliasIndex = Arrays.binarySearch(regionArray, entry.getKey());
int regionIndex = Arrays.binarySearch(regionArray, entry.getValue());
int aliasIndex = findRegionIndex(regionArray, entry.getKey());
int regionIndex = findRegionIndex(regionArray, entry.getValue());
out.writeShort(aliasIndex);
out.writeShort(regionIndex);
}
Expand All @@ -294,6 +294,14 @@ private void outputFile(Path dstFile, String version,
}
}

private static int findRegionIndex(String[] regionArray, String region) {
int index = Arrays.binarySearch(regionArray, region);
if (index < 0) {
throw new IllegalArgumentException("Unknown region: " + region);
}
return index;
}

/** Whether to output verbose messages. */
private boolean verbose;

Expand Down
Loading
Loading