RFR: 8263090: Avoid reading volatile fields twice in Locale.getDefault(Category) [v2]
Claes Redestad
redestad at openjdk.java.net
Fri Mar 5 18:53:30 UTC 2021
On Fri, 5 Mar 2021 17:29:16 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fix omitted synchronized
>
> src/java.base/share/classes/java/util/Locale.java line 959:
>
>> 957: }
>> 958:
>> 959: private static Locale getDisplayLocale() {
>
> Should this be `synchronized`?
Good catch! Fixed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2845
More information about the core-libs-dev
mailing list