RFR: 8300916: Re-examine the initialization of JNU Charset in StaticProperty [v5]
Naoto Sato
naoto at openjdk.org
Wed Jan 25 20:23:34 UTC 2023
On Wed, 25 Jan 2023 20:13:06 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Use StaticProperty.fileEncoding() & make the field @Stable
>
> src/java.base/share/classes/java/nio/charset/Charset.java line 633:
>
>> 631:
>> 632: @Stable
>> 633: private static volatile Charset defaultCharset;
>
> If the field is stable then does the volatile go away?
Right. It should.
-------------
PR: https://git.openjdk.org/jdk/pull/12171
More information about the core-libs-dev
mailing list