On Thu, 1 Dec 2022 13:05:39 GMT, Sergey Tsypanov <[email protected]> wrote:

> > receiverThread and senderThread are declared volatile but are always 
> > accessed (r/w) whilst synchronising on the stateLock.
> 

@stsypanov Yes I am aware that this was a separate observation which is not 
related to the assignment of the variables. I can surely keep them volatile but 
I wonder why they are volatile in the first place.

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

PR: https://git.openjdk.org/jdk/pull/11418

Reply via email to