RFR: 8333884: MemorySegment::reinterpret removes read-only property [v4]
Jorn Vernee
jvernee at openjdk.org
Fri Jul 5 14:14:12 UTC 2024
On Fri, 5 Jul 2024 14:01:59 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 with a new target base due to a merge or a rebase. The pull request now contains four commits:
>
> - Merge master
> - Add read-only comment on asSegment too
> - Rework docs
> - Make reinterpret retain read-only state
Marked as reviewed by jvernee (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/19629#pullrequestreview-2160796925
More information about the core-libs-dev
mailing list