RFR: 8360884: Better scoped values [v2]
Andrew Haley
aph at openjdk.org
Mon Jun 30 12:24:28 UTC 2025
> 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.
Andrew Haley has updated the pull request incrementally with one additional commit since the last revision:
8360884: Better scoped values
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26019/files
- new: https://git.openjdk.org/jdk/pull/26019/files/88893c64..658708c2
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26019&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26019&range=00-01
Stats: 24 lines in 1 file changed: 17 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/26019.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26019/head:pull/26019
PR: https://git.openjdk.org/jdk/pull/26019
More information about the core-libs-dev
mailing list