RFR: 8360884: Better scoped values [v3]
Chen Liang
liach at openjdk.org
Mon Jun 30 13:22:38 UTC 2025
On Mon, 30 Jun 2025 13:09:57 GMT, Andrew Haley <aph at 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.
>
> 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
Thanks for this update. Looks much cleaner.
-------------
Marked as reviewed by liach (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/26019#pullrequestreview-2971209484
More information about the core-libs-dev
mailing list