EA builds with changes for JDK 24

Alan Bateman alan.bateman at oracle.com
Wed Sep 4 08:34:27 UTC 2024


The builds at the Project Loom Early-Access Builds page [1] have been 
refreshed.

These builds contain most of the changes that this project would like to 
propose for JDK main line and JDK 24.

The builds include the changes to eliminate the pinning issues with 
object monitors. Thank you to those that tested with the previous builds 
from a few months ago. It would be great to get some fresh testing 
before the changes are proposed for main line. The changes are 
significant and a JEP [2] has been submitted to put this update on the 
technical roadmap.

Structured concurrency. The proposal is for StructuredTaskScope [3] to 
continue to preview. The API has been updated, the most significant 
change is the move from implementing policy in a sub-class to 
implementing it an object that you specify to the static open method. 
There will be a JEP. For this API, the greatest need is feedback from 
real-world usage, probably cases that fan-out to remote services or 
databases and experiences where there is handling of outcome and exceptions.

Scoped Values. Andrew Haley already sent a note [4] about proposing 
ScopedValue [5] continue to preview with a small update. As before, the 
need here is feedback from real-world usage. This could be insight into 
how many scoped values are bound or insight on which methods are used in 
performance critical code.

-Alan

[1] https://jdk.java.net/loom/
[2] https://openjdk.org/jeps/8337395
[3] 
https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html
[4] https://mail.openjdk.org/pipermail/loom-dev/2024-August/007133.html
[5] 
https://download.java.net/java/early_access/loom/docs/api/java.base/java/lang/ScopedValue.html



More information about the loom-dev mailing list