RELEASE NOTES: JDK 22.0.1

Notes generated: Mon Nov 04 15:07:14 CET 2024

JEPs

None.

RELEASE NOTES

hotspot/runtime

Issue Description
JDK-8325496

Make `TrimNativeHeapInterval` a Product Switch


TrimNativeHeapInterval has been made an official product switch. It allows the JVM to trim the native heap at periodic intervals.

This option is only available on Linux with glibc.


security-libs/java.security

Issue Description
JDK-8321408

Added Certainly R1 and E1 Root Certificates


The following root certificates have been added to the cacerts truststore: ``` + Certainly + certainlyrootr1 DN: CN=Certainly Root R1, O=Certainly, C=US

  • Certainly
  • certainlyroote1 DN: CN=Certainly Root E1, O=Certainly, C=US ```

hotspot/gc

Issue Description
JDK-8325074

JVM May Crash or Malfunction When Using ZGC and Non-Default `ObjectAlignmentInBytes`


Running the JVM with -XX:+UseZGC and non-default value of -XX:ObjectAlignmentInBytes may lead to JVM crashes or incorrect execution.


FIXED ISSUES

client-libs/2d

Priority Bug Summary
P3 JDK-8321489 Update LCMS to 2.16
P4 JDK-8324347 Enable "maybe-uninitialized" warning for FreeType 2.13.1
P4 JDK-8323170 j2dbench is using outdated javac source/target to be able to build by itself
P4 JDK-8323664 java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations
P4 JDK-8318603 Parallelize sun/java2d/marlin/ClipShapeTest.java
P4 JDK-8323210 Update the usage of cmsFLAGS_COPY_ALPHA

client-libs/javax.swing

Priority Bug Summary
P4 JDK-8321151 JDK-8294427 breaks Windows L&F on all older Windows versions

core-libs

Priority Bug Summary
P4 JDK-8326360 Update the Zlib version in open/src/java.base/share/legal/zlib.md to 1.3

core-libs/java.io

Priority Bug Summary
P4 JDK-8322772 Clean up code after JDK-8322417
P4 JDK-8322417 Console read line with zero out should zero out when throwing exception

core-libs/java.lang

Priority Bug Summary
P1 JDK-8325590 Regression in round-tripping UTF-16 strings after JDK-8311906

core-libs/java.net

Priority Bug Summary
P4 JDK-8314164 java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java fails intermittently in timeout

core-libs/java.time

Priority Bug Summary
P3 JDK-8325150 (tz) Update Timezone Data to 2024a

core-svc/debugger

Priority Bug Summary
P4 JDK-8317804 com/sun/jdi/JdwpAllowTest.java fails on Alpine 3.17 / 3.18
P4 JDK-8319382 com/sun/jdi/JdwpAllowTest.java shows failures on AIX if prefixLen of mask is larger than 32 in IPv6 case

core-svc/java.lang.management

Priority Bug Summary
P4 JDK-8324637 [aix] Implement support for reporting swap space in jdk.management

hotspot/compiler

Priority Bug Summary
P2 JDK-8325313 Header format error in TestIntrinsicBailOut after JDK-8317299
P3 JDK-8325326 [PPC64] Don't relocate in case of allocation failure
P3 JDK-8326101 [PPC64] Need to bailout cleanly if creation of stubs fails when code cache is out of space
P3 JDK-8325672 C2: allocate PhaseIdealLoop::_loop_or_ctrl from C->comp_arena()
P3 JDK-8323154 C2: assert(cmp != nullptr && cmp->Opcode() == Op_Cmp(bt)) failed: no exit test
P3 JDK-8326638 Crash in PhaseIdealLoop::remix_address_expressions due to unexpected Region instead of Loop
P3 JDK-8324050 Issue store-store barrier after re-materializing objects during deoptimization
P3 JDK-8317299 safepoint scalarization doesn't keep track of the depth of the JVM state
P4 JDK-8318158 RISC-V: implement roundD/roundF intrinsics
P4 JDK-8322790 RISC-V: Tune costs for shuffles with no conversion
P4 JDK-8323065 Unneccesary CodeBlob lookup in CompiledIC::internal_set_ic_destination

hotspot/gc

Priority Bug Summary
P2 JDK-8325074 ZGC fails assert(index == 0 || is_power_of_2(index)) failed: Incorrect load shift: 11
P3 JDK-8323086 Shenandoah: Heap could be corrupted by oom during evacuation
P4 JDK-8323021 Shenandoah: Encountered reference count always attributed to first worker thread
P4 JDK-8321815 Shenandoah: gc state should be synchronized to java threads only once per safepoint
P4 JDK-8323428 Shenandoah: Unused memory in regions compacted during a full GC should be mangled

hotspot/other

Priority Bug Summary
P4 JDK-8325470 [AIX] use fclose after fopen in read_psinfo

hotspot/runtime

Priority Bug Summary
P2 JDK-8323556 CDS archive space addresses should be randomized with ArchiveRelocationMode=1
P3 JDK-8327391 Add SipHash attribution file
P4 JDK-8324753 [AIX] adjust os_posix after JDK-8318696
P4 JDK-8320890 [AIX] Find a better way to mimic dl handle equality
P4 JDK-8318696 Do not use LFS64 symbols on Linux
P4 JDK-8323331 fix typo hpage_pdm_size
P4 JDK-8325496 Make TrimNativeHeapInterval a product switch
P4 JDK-8322098 os::Linux::print_system_memory_info enhance the THP output with /sys/kernel/mm/transparent_hugepage/hpage_pmd_size
P4 JDK-8322783 prioritize /etc/os-release over /etc/SuSE-release in hs_err/info output
P4 JDK-8324280 RISC-V: Incorrect implementation in VM_Version::parse_satp_mode
P4 JDK-8323964 runtime/Thread/ThreadCountLimit.java fails intermittently on AIX
P4 JDK-8321972 test runtime/Unsafe/InternalErrorTest.java timeout on linux-riscv64 platform
P4 JDK-8324598 use mem_unit when working with sysinfo memory and swap related information

hotspot/test

Priority Bug Summary
P4 JDK-8325876 crashes in docker container tests on Linuxppc64le Power8 machines
P4 JDK-8323515 Create test alias "all" for all test roots
P4 JDK-8324647 Invalid test group of lib-test after JDK-8323515

infrastructure

Priority Bug Summary
P4 JDK-8322092 Bump version numbers for 22.0.1

infrastructure/build

Priority Bug Summary
P3 JDK-8323675 Race in jdk.javadoc-gendata
P4 JDK-8321374 Add a configure option to explicitly set CompanyName property in VersionInfo resource for Windows exe/dll
P4 JDK-8323637 Capture hotspot replay files in GHA
P4 JDK-8325213 Flags introduced by configure script are not passed to ADLC build
P4 JDK-8324937 GHA: Avoid multiple test suites per job
P4 JDK-8324659 GHA: Generic jtreg errors are not reported

security-libs/java.security

Priority Bug Summary
P3 JDK-8321408 Add Certainly roots R1 and E1

security-libs/javax.net.ssl

Priority Bug Summary
P4 JDK-8326000 Remove obsolete comments for class sun.security.ssl.SunJSSE

tools/javac

Priority Bug Summary
P3 JDK-8323657 Compilation of snippet results in VerifyError at runtime with --release 9 (and above)
P3 JDK-8314275 Incorrect stepping in switch
P3 JDK-8322159 ThisEscapeAnalyzer crashes for erroneous code

tools/jpackage

Priority Bug Summary
P3 JDK-8325203 System.exit(0) kills the launched 3rd party application