Scoped Values (JEP 446)

GPTKB entity

Statements (19)
Predicate Object
gptkbp:instanceOf Python Enhancement Proposal
gptkbp:author gptkb:Mark_Reinhold
gptkbp:describes Enables sharing of immutable data within and across threads in a safe and efficient manner.
gptkbp:featureType Language feature
https://www.w3.org/2000/01/rdf-schema#label Scoped Values (JEP 446)
gptkbp:immutable true
gptkbp:introducedIn gptkb:Java_21
gptkbp:motive Provide a safer and more efficient alternative to ThreadLocal for sharing data across threads.
gptkbp:officialUrl https://openjdk.org/jeps/446
gptkbp:proposedBy gptkb:Java_21
446
gptkbp:relatedTo gptkb:Virtual_Threads
gptkb:Structured_Concurrency
gptkbp:replacedBy ThreadLocal for some use cases
gptkbp:scope Thread and task-based concurrency
gptkbp:status gptkb:Preview
gptkbp:threadSafe true
gptkbp:bfsParent gptkb:Java_SE_23
gptkbp:bfsLayer 8