RFR: 8369564: Provide a MemorySegment API to read strings with known lengths [v7]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Nov 20 11:46:47 UTC 2025


On Thu, 20 Nov 2025 08:52:36 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

> To confirm do you think it's OK to leave optimizing the UTF16 case as future work, as long as the current assumptions are clearly documented and guarded by assertions?

I think this is ok, yes -- maybe add a link (comment) between the assertion being thrown and String::bytesCompatible.

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

PR Comment: https://git.openjdk.org/jdk/pull/28043#issuecomment-3557546629


More information about the core-libs-dev mailing list