On Tue, 28 Nov 2023 19:32:56 GMT, Alexandre Iline <shurail...@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.
>
>> 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.

@shurymury The last code commit has implemented the changes based on your 
suggestion. Can you please advise what other step I should take to complete 
this bug ? Thanks.

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

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

Reply via email to