RFR: 8333884: MemorySegment::reinterpret removes read-only property [v2]
Maurizio Cimadamore
mcimadamore at openjdk.org
Mon Jun 10 15:21:12 UTC 2024
On Mon, 10 Jun 2024 15:12:59 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> > Note that `asSlice` methods also lacks a similar guarantee on read-only (but the impl works fine there)
>
> Even though not mentioned in the original issue, we could add documentation for this here as well. Or maybe via https://bugs.openjdk.org/browse/JDK-8333886 ?
Or a new issue - I'm fine with both approaches. Whatever requires less work. Since you are already adding these "if this segment is read-only... ", maybe it would be simpler to review as part of this PR?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19629#issuecomment-2158641151
More information about the core-libs-dev
mailing list