New candidate JEP: 506: Scoped Values

Davor Hrg hrgdavor at gmail.com
Tue Apr 15 12:59:23 UTC 2025


Am I reading this correctly?

Does this mean Scoped Values will be fully available (not hidden behind the
preview flag) in Java 25 ?



On Mon, Apr 14, 2025 at 9:43 PM Mark Reinhold <mark.reinhold at oracle.com>
wrote:

> https://openjdk.org/jeps/506
>
>   Summary: Introduce scoped values, which enable a method to share
>   immutable data both with its callees within a thread, and with child
>   threads.  Scoped values are easier to reason about than thread-local
>   variables.  They also have lower space and time costs, especially when
>   used together with virtual threads (JEP 444) and structured concurrency
>   (JEP 505).
>
> - Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20250415/f4331afa/attachment.htm>


More information about the loom-dev mailing list