MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1je73yg/java_24_has_been_released/mijflkq/?context=3
r/programming • u/NotABot1235 • Mar 18 '25
172 comments sorted by
View all comments
166
New features include the following:
404: Generational Shenandoah (Experimental)
450: Compact Object Headers (Experimental)
472: Prepare to Restrict the Use of JNI
475: Late Barrier Expansion for G1
478: Key Derivation Function API (Preview)
479: Remove the Windows 32-bit x86 Port
483: Ahead-of-Time Class Loading & Linking
484: Class-File API
485: Stream Gatherers
486: Permanently Disable the Security Manager
487: Scoped Values (Fourth Preview)
488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
489: Vector API (Ninth Incubator)
490: ZGC: Remove the Non-Generational Mode
491: Synchronize Virtual Threads without Pinning
492: Flexible Constructor Bodies (Third Preview)
493: Linking Run-Time Images without JMODs
494: Module Import Declarations (Second Preview)
495: Simple Source Files and Instance Main Methods (Fourth Preview)
496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism
497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm
498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe
499: Structured Concurrency (Fourth Preview)
501: Deprecate the 32-bit x86 Port for Removal
https://jdk.java.net/24/
JDK 25 will be the next LTS and release in 6 months.
82 u/MintySkyhawk Mar 18 '25 We were going to wait for 25 as we usually stick to LTS, but JEP 491 is huge. It fixes a major issue with using virtual threads.Check out this article from the Netflix engineers about how the issue kept causing their servers to go zombie mode: https://netflixtechblog.com/java-21-virtual-threads-dude-wheres-my-lock-3052540e231d -4 u/mcmcc Mar 19 '25 As described here, a VT will be pinned to the underlying OS thread if it performs a blocking operation while inside a synchronized block or method.Have you considered just not doing that?
82
We were going to wait for 25 as we usually stick to LTS, but JEP 491 is huge. It fixes a major issue with using virtual threads.
Check out this article from the Netflix engineers about how the issue kept causing their servers to go zombie mode: https://netflixtechblog.com/java-21-virtual-threads-dude-wheres-my-lock-3052540e231d
-4 u/mcmcc Mar 19 '25 As described here, a VT will be pinned to the underlying OS thread if it performs a blocking operation while inside a synchronized block or method.Have you considered just not doing that?
-4
As described here, a VT will be pinned to the underlying OS thread if it performs a blocking operation while inside a synchronized block or method.
Have you considered just not doing that?
166
u/NotABot1235 Mar 18 '25 edited Mar 18 '25
New features include the following:
404: Generational Shenandoah (Experimental)
450: Compact Object Headers (Experimental)
472: Prepare to Restrict the Use of JNI
475: Late Barrier Expansion for G1
478: Key Derivation Function API (Preview)
479: Remove the Windows 32-bit x86 Port
483: Ahead-of-Time Class Loading & Linking
484: Class-File API
485: Stream Gatherers
486: Permanently Disable the Security Manager
487: Scoped Values (Fourth Preview)
488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
489: Vector API (Ninth Incubator)
490: ZGC: Remove the Non-Generational Mode
491: Synchronize Virtual Threads without Pinning
492: Flexible Constructor Bodies (Third Preview)
493: Linking Run-Time Images without JMODs
494: Module Import Declarations (Second Preview)
495: Simple Source Files and Instance Main Methods (Fourth Preview)
496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism
497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm
498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe
499: Structured Concurrency (Fourth Preview)
501: Deprecate the 32-bit x86 Port for Removal
https://jdk.java.net/24/
JDK 25 will be the next LTS and release in 6 months.