RELEASE NOTES: JDK 21.0.5

Notes generated: Sat Jun 15 21:34:06 CEST 2024

JEPs

None.

RELEASE NOTES

tools/launcher

Issue Description
JDK-8310201

Available Locales Information Now Listed with `-XshowSettings:locale` Option


The showSettings launcher option no longer prints available locales information by default, when -XshowSettings is used. The -XshowSettings:locale option will continue to print all settings related to available locales.


FIXED ISSUES

client-libs

Priority Bug Summary
P4 JDK-8294148 Support JSplitPane for instructions and test UI

client-libs/2d

Priority Bug Summary
P3 JDK-8311666 Disabled tests in test/jdk/sun/java2d/marlin
P4 JDK-8331746 Create a test to verify that the cmm id is not ignored

client-libs/java.awt

Priority Bug Summary
P3 JDK-8317288 [macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab
P3 JDK-8305825 getBounds API returns wrong value resulting in multiple Regression Test Failures on Ubuntu 23.04
P3 JDK-8328999 Update GIFlib to 5.2.2
P3 JDK-8329004 Update Libpng to 1.6.43
P4 JDK-8328218 Delete test java/awt/Window/FindOwner/FindOwner.html
P4 JDK-8280392 java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed."
P4 JDK-8316240 Open source several add/remove MenuBar manual tests
P4 JDK-8328561 test java/awt/Robot/ManualInstructions/ManualInstructions.java isn't used

client-libs/javax.swing

Priority Bug Summary
P3 JDK-8323801 tag doesn't strikethrough the text
P3 JDK-8328953 JEditorPane.read throws ChangedCharSetException
P3 JDK-8332431 NullPointerException in JTable of SwingSet2
P3 JDK-8325179 Race in BasicDirectoryModel.validateFileCache
P3 JDK-8326734 text-decoration applied to lost when mixed with or
P4 JDK-8323670 A few client tests intermittently throw ConcurrentModificationException
P4 JDK-8238169 BasicDirectoryModel getDirectories and DoChangeContents.run can deadlock
P4 JDK-8327787 Convert javax/swing/border/Test4129681.java applet test to main
P4 JDK-8325620 HTMLReader uses ConvertAction instead of specified CharacterAction for , ,
P4 JDK-8310072 JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+
P4 JDK-8315804 Open source several Swing JTabbedPane JTextArea JTextField tests
P4 JDK-8316104 Open source several Swing SplitPane and RadioButton related tests
P4 JDK-8307193 Several Swing jtreg tests use class.forName on L&F classes
P4 JDK-8305072 Win32ShellFolder2.compareTo is inconsistent

core-libs

Priority Bug Summary
P4 JDK-8332589 ubsan: unix/native/libjava/ProcessImpl_md.c:562:5: runtime error: null pointer passed as argument 2, which is declared to never be null

core-libs/java.io

Priority Bug Summary
P4 JDK-8330748 ByteArrayOutputStream.writeTo(OutputStream) pins carrier

core-libs/java.lang

Priority Bug Summary
P4 JDK-8323782 Race: Thread::interrupt vs. AbstractInterruptibleChannel.begin
P4 JDK-8311989 Test java/lang/Thread/virtual/Reflection.java timed out

core-libs/java.lang.foreign

Priority Bug Summary
P4 JDK-8323552 AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment

core-libs/java.net

Priority Bug Summary
P4 JDK-8330814 Cleanups for KeepAliveCache tests

core-libs/java.nio

Priority Bug Summary
P3 JDK-8325382 (fc) FileChannel.transferTo throws IOException when position equals size

core-libs/java.util.concurrent

Priority Bug Summary
P3 JDK-8332154 Memory leak in SynchronousQueue

core-libs/java.util.jar

Priority Bug Summary
P4 JDK-8332490 JMH org.openjdk.bench.java.util.zip.InflaterInputStreams.inflaterInputStreamRead OOM

core-svc/debugger

Priority Bug Summary
P3 JDK-8324668 JDWP process management needs more efficient file descriptor handling

hotspot/compiler

Priority Bug Summary
P2 JDK-8322726 C2: Unloaded signature class kills argument value
P2 JDK-8324983 Race in CompileBroker::possibly_add_compiler_threads
P2 JDK-8329258 TailCall should not use frame pointer register for jump target
P3 JDK-8330611 AES-CTR vector intrinsic may read out of bounds (x86_64, AVX-512)
P3 JDK-8324174 assert(m->is_entered(current)) failed: invariant
P3 JDK-8322996 BoxLockNode creation fails with assert(reg < CHUNK_SIZE) failed: sanity
P3 JDK-8319793 C2 compilation fails with "Bad graph detected in build_loop_late" after JDK-8279888
P3 JDK-8323972 C2 compilation fails with assert(!x->as_Loop()->is_loop_nest_inner_loop()) failed: loop was transformed
P3 JDK-8316756 C2 EA fails with "missing memory path" when encountering unsafe_arraycopy stub call
P3 JDK-8327423 C2 remove_main_post_loops: check if main-loop belongs to pre-loop, not just assert
P3 JDK-8332905 C2 SuperWord: bad AD file, with RotateRightV and first operand not a pack
P3 JDK-8333366 C2: CmpU3Nodes are not pushed back to worklist in PhaseCCP leading to non-fixpoint assertion failure
P3 JDK-8331575 C2: crash when ConvL2I is split thru phi at LongCountedLoop
P3 JDK-8323682 C2: guard check is not generated in Arrays.copyOfRange intrinsic when allocation is eliminated by EA
P3 JDK-8331885 C2: meet between unloaded and speculative types is not symmetric
P3 JDK-8321278 C2: Partial peeling fails with assert "last_peel <- first_not_peeled"
P3 JDK-8324969 C2: prevent elimination of unbalanced coarsened locking regions
P3 JDK-8332959 C2: ZGC fails with 'Incorrect load shift' when invoking Object.clone() reflectively on an array
P3 JDK-8331863 DUIterator_Fast used before it is constructed
P3 JDK-8329126 No native wrappers generated anymore with -XX:-TieredCompilation after JDK-8251462
P3 JDK-8317299 safepoint scalarization doesn't keep track of the depth of the JVM state
P4 JDK-8287325 AArch64: fix virtual threads with -XX:UseBranchProtection=pac-ret
P4 JDK-8307352 AARCH64: Improve itable_stub
P4 JDK-8323122 AArch64: Increase itable stub size estimate
P4 JDK-8323577 C2 SuperWord: remove AlignVector restrictions on IR tests added in JDK-8305055
P4 JDK-8320379 C2: Sort spilling/unspilling sequence for better ld/st merging into ldp/stp on AArch64
P4 JDK-8332499 Gtest codestrings.validate_vm fail on linux x64 when hsdis is present
P4 JDK-8332904 ubsan ppc64le: c1_LIRGenerator_ppc.cpp:581:21: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int'

hotspot/gc

Priority Bug Summary
P2 JDK-8315031 YoungPLABSize and OldPLABSize not aligned by ObjectAlignmentInBytes
P3 JDK-8316328 Test jdk/jfr/event/oldobject/TestSanityDefault.java times out for some heap sizes
P4 JDK-8324755 Enable parallelism in vmTestbase/gc/gctests/LargeObjects tests
P4 JDK-8322330 JavadocHelperTest.java OOMEs with Parallel GC and ZGC
P4 JDK-8325616 JFR ZGC Allocation Stall events should record stack traces
P4 JDK-8329134 Reconsider TLAB zapping
P4 JDK-8331573 Rename CollectedHeap::is_gc_active to be explicitly about STW GCs
P4 JDK-8328075 Shenandoah: Avoid forwarding when objects don't move in full-GC
P4 JDK-8333716 Shenandoah: Check for disarmed method before taking the nmethod lock
P4 JDK-8331771 ZGC: Remove OopMapCacheAlloc_lock ordering workaround
P4 JDK-8330576 ZYoungCompactionLimit should have range check
P5 JDK-8333093 Incorrect comment in zAddress_aarch64.cpp

hotspot/jfr

Priority Bug Summary
P3 JDK-8326106 Write and clear stack trace table outside of safepoint
P4 JDK-8327990 [macosx-aarch64] Various tests fail with -XX:+AssertWXAtThreadSync
P4 JDK-8331931 JFR: Avoid loading regex classes during startup
P4 JDK-8329995 Restricted access to `/proc` can cause JFR initialization to crash

hotspot/runtime

Priority Bug Summary
P2 JDK-8332935 Crash: assert(*lastPtr != 0) failed: Mismatched JNINativeInterface tables, check for new entries
P3 JDK-8325469 Freeze/Thaw code can crash in the presence of OSR frames
P4 JDK-8324577 [REDO] - [IMPROVE] OPEN_MAX is no longer the max limit on macOS >= 10.6 for RLIMIT_NOFILE
P4 JDK-8319773 Avoid inflating monitors when installing hash codes for LM_LIGHTWEIGHT
P4 JDK-8322008 Exclude some CDS tests from running with -Xshare:off
P4 JDK-8329665 fatal error: memory leak: allocating without ResourceMark
P4 JDK-8331714 Make OopMapCache installation lock-free
P4 JDK-8317240 Promptly free OopMapEntry after fail to insert the entry to OopMapCache
P4 JDK-8310108 Skip ReplaceCriticalClassesForSubgraphs when EnableJVMCI is specified
P4 JDK-8331789 ubsan: deoptimization.cpp:403:29: runtime error: load of value 208, which is not a valid value for type 'bool'
P4 JDK-8332473 ubsan: growableArray.hpp:290:10: runtime error: null pointer passed as argument 1, which is declared to never be null
P4 JDK-8332720 ubsan: instanceKlass.cpp:3550:76: runtime error: member call on null pointer of type 'struct Array'
P4 JDK-8332894 ubsan: vmError.cpp:2090:26: runtime error: division by zero
P4 JDK-8331421 ubsan: vmreg.cpp checking error member call on misaligned address
P4 JDK-8331626 unsafe.cpp:162:38: runtime error in index_oop_from_field_offset_long - applying non-zero offset 4563897424 to null pointer
P4 JDK-8307788 vmTestbase/gc/gctests/LargeObjects/large003/TestDescription.java timed out

hotspot/svc

Priority Bug Summary
P2 JDK-8314225 SIGSEGV in JavaThread::is_lock_owned

hotspot/test

Priority Bug Summary
P4 JDK-8332898 failure_handler: log directory of commands
P4 JDK-8325763 Revert properties: vm.opt.x.*
P5 JDK-8332885 Clarify failure_handler self-tests
P5 JDK-8328234 Remove unused nativeUtils files

infrastructure

Priority Bug Summary
P4 JDK-8332675 test/hotspot/jtreg/gc/testlibrary/Helpers.java compileClass javadoc does not match after 8321812

infrastructure/build

Priority Bug Summary
P4 JDK-8331164 createJMHBundle.sh download jars fail when url needed to be redirected
P5 JDK-8333477 Delete extra empty spaces in Makefiles

infrastructure/release_eng

Priority Bug Summary
P4 JDK-8331266 Bump update version for OpenJDK: jdk-21.0.5

security-libs/java.security

Priority Bug Summary
P4 JDK-8318479 [jmh] the test security.CacheBench failed for multiple threads run

security-libs/javax.crypto:pkcs11

Priority Bug Summary
P3 JDK-8261433 Better pkcs11 performance for libpkcs11:C_EncryptInit/libpkcs11:C_DecryptInit
P3 JDK-8328785 IOException: Symbol not found: C_GetInterface for PKCS11 interface prior to V3.0

tools

Priority Bug Summary
P4 JDK-8331077 nroff man page update for jar tool

tools/javac

Priority Bug Summary
P3 JDK-8312229 Crash involving yield, switch and anonymous classes

tools/jlink

Priority Bug Summary
P3 JDK-8313983 jmod create --target-platform should replace existing ModuleTarget attribute

tools/launcher

Priority Bug Summary
P3 JDK-8310201 Reduce verbose locale output in -XshowSettings launcher option

xml/javax.xml.validation

Priority Bug Summary
P4 JDK-8320602 Lock contention in SchemaDVFactory.getInstance()