[jdk23] RFR: 8333849: (dc) DatagramChannel send/receive fails with UOE if buffer backed by memory segment allocated from shared arena
Alan Bateman
alanb at openjdk.org
Fri Jun 28 14:09:30 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.
Marked as reviewed by alanb (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/19941#pullrequestreview-2148131642
More information about the nio-dev
mailing list