On Fri, 27 Jun 2025 14:32:11 GMT, Andrew Haley <a...@openjdk.org> wrote:
> Scoped values cannot be used early in the JDK boot process because of some > dependencies on System.getProperty(). This dependency should be removed in a > way that allows scoped values to be created (but not necessarily bound) at > any stage during boot. > > Also, Scoped Value's constructor has a synchronized block, which limits the > use of scoped values at runtime. Constructing a scoped value should be a > thread-local operation. This pull request has now been integrated. Changeset: 4df9c873 Author: Andrew Haley <a...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/4df9c873452293ccde3c7dbcd64e1ced6b6af52e Stats: 124 lines in 3 files changed: 73 ins; 8 del; 43 mod 8360884: Better scoped values Reviewed-by: liach, alanb ------------- PR: https://git.openjdk.org/jdk/pull/26019