RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v6]

Chen Liang liach at openjdk.org
Mon Mar 17 02:38:08 UTC 2025


On Thu, 13 Mar 2025 15:36:08 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Per Minborg has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 246 commits:
>> 
>>  - Merge branch 'master' into implement-jep502
>>  - Clean up exception messages and fix comments
>>  - Rename field
>>  - Rename method and fix comment
>>  - Rework reenterant logic
>>  - Use acquire semantics for reading rather than volatile semantics
>>  - Add missing null check
>>  - Simplify handling of sentinel, wrap, and unwrap
>>  - Fix JavaDoc issues
>>  - Fix members in StableEnumFunction
>>  - ... and 236 more: https://git.openjdk.org/jdk/compare/4e51a8c9...d6e1573f
>
> src/hotspot/share/ci/ciField.cpp line 254:
> 
>> 252: 
>> 253: static bool trust_final_non_static_fields_of_type(Symbol* signature) {
>> 254:   return signature == vmSymbols::java_lang_StableValue_signature();
> 
> Just a note that we will need to decide whether to keep this or not...

We might change this to require stable values to be strict final instead if strict final is previewed at the same time as stable values - https://openjdk.org/jeps/8350458

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23972#discussion_r1997850924


More information about the core-libs-dev mailing list