[jdk23] 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
Fri Jun 28 15:32:17 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.

Running tier1, tier2, tier3 - will integrate when results come back

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19941#issuecomment-2197182262


More information about the nio-dev mailing list