On Sat, 27 Feb 2021 18:33:52 GMT, Andrey Turbanov <github.com+741251+turban...@openjdk.org> wrote:
> 8263138: Initialization of sun.font.SunFontManager.platformFontMap is not > thread safe The bug: https://bugs.openjdk.java.net/browse/JDK-8263138 src/java.desktop/share/classes/sun/font/SunFontManager.java line 1452: > 1450: if (platformFontMap == null) { > 1451: platformFontMap = populateHardcodedFileNameMap(); > 1452: SunFontManager.platformFontMap = platformFontMap; I am not sure it is enough for "thread-safe initialization". The "platformFontMap" might not be null, but its content can be broken/incomplete at this point. ------------- PR: https://git.openjdk.java.net/jdk/pull/2762