RFR: 8333884: MemorySegment::reinterpret removes read-only property [v3]
Jorn Vernee
jvernee at openjdk.org
Mon Jun 10 17:04:15 UTC 2024
On Mon, 10 Jun 2024 15:30:39 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> This PR proposes to retain the read-only state when any of the `MemorySegment::reinterpret` methods is called.
>>
>> Previously, the read-only state was lost and the returned `MemorySegment` was always writable regardless of the original segment's read-only state.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>
> Add read-only comment on asSegment too
Marked as reviewed by jvernee (Reviewer).
Thanks for fixing!
-------------
PR Review: https://git.openjdk.org/jdk/pull/19629#pullrequestreview-2108320145
PR Comment: https://git.openjdk.org/jdk/pull/19629#issuecomment-2158879695
More information about the core-libs-dev
mailing list