[jdk23] Integrated: 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 Jul 1 07:58:23 UTC 2024
On Fri, 28 Jun 2024 14:03:06 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> Hi, this is a clean backport of [JDK-8333849](https://bugs.openjdk.org/browse/JDK-8333849) to JDK 23.
>
> JDK-8333849 fixes a bug that prevents using ByteBuffers derived from MemorySegments allocated from a shared arena with DatagramChannel. I believe the fix is important enough to justify backporting it to JDK 23 in this phase.
>
> The fix, and test, have soaked in the mainline for two weeks already - without causing any regression.
This pull request has now been integrated.
Changeset: e78c6821
Author: Daniel Fuchs <dfuchs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e78c6821429c7e769b2c73ceb3c9bd366851012c
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: alanb
Backport-of: e7dc76b5776e05082281fb640d1592479cfe9e6b
-------------
PR: https://git.openjdk.org/jdk/pull/19941
More information about the nio-dev
mailing list