[OpenJDK 2D-Dev] RFR: 8272756: Remove unnecessary explicit initialization of volatile variables in java.desktop

Alexey Ivanov aivanov at openjdk.java.net
Mon Aug 23 18:34:24 UTC 2021


On Mon, 23 Aug 2021 17:57:52 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Maybe it's kind of a protection from a race. Yet it's possible either way: another thread could see `essentialTags == null` before this one initialises the field.
>
> I think we can drop it completely.

Agree.

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

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


More information about the 2d-dev mailing list