ICU-21462 ICULocaleService.java has a race condition

This commit is contained in:
George Rhoten 2021-01-19 10:44:43 -08:00 committed by grhoten
parent e5a3f2baa7
commit 747f5cd924

View file

@ -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;
}
}
}