RFR: 8344328: (dc) DatagramChannelImpl.blockingReceive can now synchronize on packet
Jaikiran Pai
jpai at openjdk.org
Tue Nov 19 08:20:44 UTC 2024
On Mon, 18 Nov 2024 16:17:20 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> Now that JEP 491 is integrated, we can restore long-standing behavior in the DatagramSocket adaptor to synchronize on the DatagramPacket for the duration of the send/receive.
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.
-------------
Marked as reviewed by jpai (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22212#pullrequestreview-2444679164
More information about the nio-dev
mailing list