Java Cup
Inside Java

News and views from members of the Java team at Oracle

Java 24 Stops Pinning Virtual Threads (Almost) - Inside Java Newscast #80

JEP 491 improves the scalability of Java code that uses synchronized methods and statements by arranging for virtual threads that block in such constructs to release their underlying platform threads for use by other virtual threads. This eliminates nearly all cases of virtual threads being pinned to platform threads, which severely restricts the number of virtual threads available to handle an application's workload. This change is already integrated into Java 24 and available in the latest JDK 24 EA builds. We also look into the remaining cases of pinning and how to observe it before we briefly touch on thread capture and io_uring.

Show Notes

Additional Resources

The Inside Java Newscast is a monthly YouTube show - check out the YouTube playlist for all the episodes. Since 2026, we also publish it as a podcast. For more Java news, subscribe to our RSS feed and follow @Java on X.

Contact us.