mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-21462 ICULocaleService.java has a race condition
This commit is contained in:
parent
e5a3f2baa7
commit
747f5cd924
1 changed files with 1 additions and 1 deletions
|
@ -612,9 +612,9 @@ public class ICULocaleService extends ICUService {
|
|||
if (loc != fallbackLocale) {
|
||||
synchronized (this) {
|
||||
if (loc != fallbackLocale) {
|
||||
fallbackLocale = loc;
|
||||
fallbackLocaleName = loc.getBaseName();
|
||||
clearServiceCache();
|
||||
fallbackLocale = loc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue