JDK-8146522 : (ch) DatagramChannelImpl should set/clear reader/writerThread within stateLock
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2016-01-05
  • Updated: 2018-07-03
  • Resolved: 2018-07-03
Related Reports
Duplicate :  
Relates :  
In DatagramChannelImpl readerThread and writerThread are set and cleared without holding the stateLock. This situation should be examined with the implementation in SocketChannelImpl as a reference. The code in ServerSocketChannelImpl should be considered as well.
This issue was fixed as part of the re-write of the async close mechanism so I think we can close this bug.