RFR: 8355022: Implement JEP 506: Scoped Values [v7]

Chen Liang liach at openjdk.org
Thu May 8 18:20:54 UTC 2025


On Thu, 8 May 2025 17:33:09 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> Propose to finalize scoped values.
>> The only functional change is that the orElse() method no longer accepts a null argument.
>
> Andrew Haley has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix merge

I noted that `ThreadFlock` is using scoped values but throwing `StructureViolationException` introduced by structured concurrency - is it considered an implementation artifact and part of structured concurrency instead?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24923#issuecomment-2863891143


More information about the compiler-dev mailing list