Integrated: 8333849: (dc) DatagramChannel send/receive fails with UOE if buffer backed by memory segment allocated from shared arena
Alan Bateman
alanb at openjdk.org
Mon Jun 10 12:50:17 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.
This pull request has now been integrated.
Changeset: e7dc76b5
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e7dc76b5776e05082281fb640d1592479cfe9e6b
Stats: 509 lines in 2 files changed: 506 ins; 0 del; 3 mod
8333849: (dc) DatagramChannel send/receive fails with UOE if buffer backed by memory segment allocated from shared arena
Reviewed-by: dfuchs
-------------
PR: https://git.openjdk.org/jdk/pull/19618
More information about the nio-dev
mailing list