New candidate JEP: 487: Scoped Values (Fourth Preview)

Mark Reinhold mark.reinhold at oracle.com
Mon Sep 30 19:28:41 UTC 2024


https://openjdk.org/jeps/487

  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 480).  This is a preview API.

- Mark


More information about the jdk-dev mailing list