RFR: 8344328: (dc) DatagramChannelImpl.blockingReceive can now synchronize on packet

Alan Bateman alanb at openjdk.org
Tue Nov 19 08:34:44 UTC 2024


On Tue, 19 Nov 2024 08:17:14 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> This looks reasonable to me. I believe the previous decision to reduce the scope of `synchronized` blocks in this code was done for https://bugs.openjdk.org/browse/JDK-8312166.

That's right, I should have linked to that change in JDK 22. The removal of the SecurityManager support, and the follow-up work in JDK-8344112, means the changes to hold the lock for the duration of both I/O ops is much simpler now as a lot of complexity and code paths go away.

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

PR Comment: https://git.openjdk.org/jdk/pull/22212#issuecomment-2485024118


More information about the nio-dev mailing list