<Swing Dev> RFR: 8197825: [Test] Intermiitent timeout with javax/swing JColorChooser Test [v3]
Alexey Ivanov
aivanov at openjdk.java.net
Fri Jan 29 13:31:51 UTC 2021
On Fri, 29 Jan 2021 04:03:29 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> It seems "m_breakMessageLoop" is never true for unsuccessful run even though AwtToolkit::QuitMessageLoop finish execution (where m_breakMessageLoop is set to true),
> so AwtToolkit::MessageLoop never ends and shutdown hook gets called where tk.isDisposed() loop start spinning. seems to be some timing issue.
Then this does look like a synchronisation problem. One thread changes the value of `m_breakMessageLoop` but another doesn't see it's changed. Should `m_breakMessageLoop` be declared as `volatile`?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2220
More information about the swing-dev
mailing list