RFR: 8360884: Better scoped values [v3]
Andrew Haley
aph at openjdk.org
Mon Jun 30 13:09:57 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:
Move THREAD_LOCAL_RANDOM_ACCESS into class Cache.Constants
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26019/files
- new: https://git.openjdk.org/jdk/pull/26019/files/658708c2..3f01aad6
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26019&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26019&range=01-02
Stats: 7 lines in 1 file changed: 3 ins; 3 del; 1 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