RFR: 8333849: (dc) DatagramChannel send/receive fails with UOE if buffer backed by memory segment allocated from shared arena
Daniel Fuchs
dfuchs at openjdk.org
Mon Jun 10 11:00:11 UTC 2024
On Mon, 10 Jun 2024 06:43:20 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> DatagramChannel send/receive throw UOE if invoked with a ByteBuffer that is backed by a memory segment allocated from a shared arena. These methods don't use IOUtil so was missed when the new accessor to get the buffer address was added. The issue is a remainder of lack of test coverage so I've added a test that exercises all read/write methods in the ByteChannel implementations.
Looks reasonable to me
-------------
Marked as reviewed by dfuchs (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/19618#pullrequestreview-2107464477
More information about the nio-dev
mailing list