<i18n dev> RFR: 8287860: Revise usage of volatile in j.u.Locale [v2]
Сергей Цыпанов
duke at openjdk.java.net
Mon Jun 6 14:36:03 UTC 2022
> - cached hash code of `Locale` and `Locale$LanguageRange` shouldn't be volatile, even in case of race in the worst case it is recalculated at most once per thread
> - `defaultLocale` field is read multiple times in `initDefault()`
> - `isoLanguages` is accessed multiple times in `getISOLanguages()`
> - `languageTag` is read twice in `toLanguageTag()`
Сергей Цыпанов has updated the pull request incrementally with one additional commit since the last revision:
8287860: Mark hash fields with @Stable
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/9041/files
- new: https://git.openjdk.java.net/jdk/pull/9041/files/d64917f1..d4534346
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=9041&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=9041&range=00-01
Stats: 5 lines in 2 files changed: 2 ins; 0 del; 3 mod
Patch: https://git.openjdk.java.net/jdk/pull/9041.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/9041/head:pull/9041
PR: https://git.openjdk.java.net/jdk/pull/9041
More information about the i18n-dev
mailing list