On Sat, 21 Jun 2025 00:17:26 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
> That only affects the case where the second thread tries to read shared data > (unrelated to GraphicsDevice) without synchronization, which was written > before the first thread called getFullScreenWindow(). If visibility is > required, it should be ensured by the caller. Depending on some internal and > undocumented lock for that is not a good thing. It is true… but it affects the fields of the full screen window itself. Doesn't any code path uses the fields of the full screen window after getting an object reference to it? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25818#discussion_r2163916863