On Tue, 21 Nov 2023 08:37:00 GMT, songpv-imt <d...@openjdk.org> wrote:

> Hmm... Are you suggesting instead of using SYNC_LOCK, for better code 
> transparency, we should place the code that accesses the listener's fields 
> from the main thread into AWT Event Queue with EventQueue.invokeAndWait? Can 
> you please check if the update code meets your suggestion? Thanks.

Yes. Half of the access to the state of the listener is already on the even 
queue. It would be pretty transparent to make the other part of the access to 
go through the queue.

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

PR Comment: https://git.openjdk.org/jdk/pull/16396#issuecomment-1830542554

Reply via email to