On Sun, 28 Feb 2021 08:47:22 GMT, Andrey Turbanov 
<github.com+741251+turban...@openjdk.org> wrote:

>> One thread may create the local platformFontMap, then set the static 
>> SunFontManager.platformFontMap field, and then initialize the 
>> platformFontMap or mix these operations. The second thread may see non-null 
>> SunFontManager.platformFontMap which is not still initialized.
>
> Made `volatile` to guarantee memory visibility if thread saw non-null value.

I don't have any other questions, will file a bug and run the tests.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2762

Reply via email to