RELEASE NOTES FOR: 18.0.2 ==================================================================================================== Notes generated: Wed Apr 03 08:20:55 CEST 2024 Hint: Prefix bug IDs with https://bugs.openjdk.org/browse/ to reach the relevant JIRA entry. JAVA ENHANCEMENT PROPOSALS (JEP): None. RELEASE NOTES: hotspot/runtime: JDK-8281181: CPU Shares Ignored When Computing Active Processor Count Previous JDK releases used an incorrect interpretation of the Linux cgroups parameter "cpu.shares". This might cause the JVM to use fewer CPUs than available, leading to an under utilization of CPU resources when the JVM is used inside a container. Starting from this JDK release, by default, the JVM no longer considers "cpu.shares" when deciding the number of threads to be used by the various thread pools. The `-XX:+UseContainerCpuShares` command-line option can be used to revert to the previous behavior. This option is deprecated and may be removed in a future JDK release. ALL FIXED ISSUES, BY COMPONENT AND PRIORITY: client-libs/2d: (P3) JDK-8283217: Leak FcObjectSet in getFontConfigLocations() in fontpath.c (P4) JDK-8282628: Potential memory leak in sun.font.FontConfigManager.getFontConfig() (P4) JDK-8278549: UNIX sun/font coding misses SUSE distro detection on recent distro SUSE 15 client-libs/java.awt: (P3) JDK-8284033: Leak XVisualInfo in getAllConfigs in awt_GraphicsEnv.c core-libs/java.io:serialization: (P3) JDK-8278065: Refactor subclassAudits to use ClassValue (P4) JDK-8277072: ObjectStreamClass caches keep ClassLoaders alive (P4) JDK-8280041: Retry loop issues in java.io.ClassCache core-libs/java.lang.invoke: (P4) JDK-8281168: Micro-optimize VarForm.getMemberName for interpreter core-libs/java.lang.module: (P3) JDK-8282444: Module finder incorrectly assumes default file system path-separator character core-libs/java.util: (P4) JDK-8284866: Add test to JDK-8273056 (P4) JDK-8282551: Properly initialize L32X64MixRandom state core-libs/java.util.jar: (P4) JDK-8278794: Infinite loop in DeflaterOutputStream.finish() core-libs/java.util:i18n: (P4) JDK-8282887: Potential memory leak in sun.util.locale.provider.HostLocaleProviderAdapterImpl.getNumberPattern() on Windows core-svc/debugger: (P3) JDK-8281615: Deadlock caused by jdwp agent docs/guides: (P4) JDK-8286380: Update Troubleshooting Guide/Diagnostic Tools NMT categories for JDK18 docs/hotspot: (P4) JDK-8287883: Incorrect documentation for OutOfMemoryError: Requested array size exceeds VM limit hotspot/compiler: (P3) JDK-8281266: [JVMCI] MetaUtil.toInternalName() doesn't handle hidden classes correctly (P3) JDK-8279219: [REDO] C2 crash when allocating array of size too large (P3) JDK-8281811: assert(_base == Tuple) failed: Not a Tuple after JDK-8280799 (P3) JDK-8281544: assert(VM_Version::supports_avx512bw()) failed for Tests jdk/incubator/vector/ (P3) JDK-8256368: Avoid repeated upcalls into Java to re-resolve MH/VH linkers/invokers (P3) JDK-8282874: Bad performance on gather/scatter API caused by different IntSpecies of indexMap (P3) JDK-8275337: C1: assert(false) failed: live_in set of first block must be empty (P3) JDK-8282194: C1: Missing side effects of dynamic constant linkage (P3) JDK-8280600: C2: assert(!had_error) failed: bad dominance (P3) JDK-8283451: C2: assert(_base == Long) failed: Not a Long (P3) JDK-8282590: C2: assert(addp->is_AddP() && addp->outcnt() > 0) failed: Don't process dead nodes (P3) JDK-8282592: C2: assert(false) failed: graph should be schedulable (P3) JDK-8279822: CI: Constant pool entries in error state are not supported (P3) JDK-8280867: Cpuid1Ecx feature parsing is incorrect for AMD CPUs (P3) JDK-8283408: Fix a C2 crash when filling arrays with unsafe (P3) JDK-8283641: Large value for CompileThresholdScaling causes assert (P3) JDK-8280901: MethodHandle::linkToNative stub is missing w/ -Xint (P3) JDK-8282312: Minor corrections to evbroadcasti32x4 intrinsic on x86 (P3) JDK-8281822: Test failures on non-DTrace builds due to incomplete DTrace* flags handling (P3) JDK-8282231: x86-32: runtime call to SharedRuntime::ldiv corrupts registers (P3) JDK-8280799: ะก2: assert(false) failed: cyclic dependency prevents range check elimination (P4) JDK-8271008: appcds/*/MethodHandlesAsCollectorTest.java tests time out because of excessive GC (CodeCache GC Threshold) in loom (P4) JDK-8277893: Arraycopy stress tests (P4) JDK-8277055: Assert "missing inlining msg" with -XX:+PrintIntrinsics (P4) JDK-8283187: C2: loop candidate for superword not always unrolled fully if superword fails (P4) JDK-8282172: CompileBroker::log_metaspace_failure is called from non-Java/compiler threads (P4) JDK-8271055: Crash during deoptimization with "assert(bb->is_reachable()) failed: getting result from unreachable basicblock" with -XX:+VerifyStack (P4) JDK-8272493: Suboptimal code generation around Preconditions.checkIndex intrinsic with AVX2 (P4) JDK-8284369: TestFailedAllocationBadGraph fails with -XX:TieredStopAtLevel < 4 (P4) JDK-8279668: x86: AVX2 versions of vpxor should be asserted (P5) JDK-8282045: When loop strip mining fails, safepoints are removed from loop anyway hotspot/gc: (P1) JDK-8283555: G1: Concurrent mark accesses uninitialized BOT of closed archive regions hotspot/jfr: (P4) JDK-8281318: Improve jfr/event/allocation tests reliability (P4) JDK-8281638: jfr/event/allocation tests fail with release VMs after JDK-8281318 due to lack of -XX:+UnlockDiagnosticVMOptions hotspot/runtime: (P3) JDK-8281274: deal with ActiveProcessorCount in os::Linux::print_container_info (P3) JDK-8281181: Do not use CPU Shares to compute active processor count (P3) JDK-8283379: Memory leak in FileHeaderHelper (P3) JDK-8282295: SymbolPropertyEntry::set_method_type fails with assert (P4) JDK-8278381: [GCC 11] Address::make_raw() does not initialize rspec (P4) JDK-8281771: Crash in java_lang_invoke_MethodType::print_signature infrastructure/build: (P4) JDK-8282225: GHA: Allow one concurrent run per PR only (P4) JDK-8284507: GHA: Only check test results if testing was not skipped (P4) JDK-8283017: GHA: Workflows break with update release versions (P4) JDK-8284389: Improve stability of GHA Pre-submit testing by caching cygwin installer (P4) JDK-8279958: Provide configure hints for Alpine/apk package managers infrastructure/release_eng: (P4) JDK-8283037: Update jdk18u fix version to 18.0.2 security-libs/javax.net.ssl: (P2) JDK-8274524: SSLSocket.close() hangs if it is called during the ssl handshake xml/jaxp: (P4) JDK-8282583: Update BCEL md to include the copyright notice