Integrated: 8333884: MemorySegment::reinterpret removes read-only property
Per Minborg
pminborg at openjdk.org
Sat Jul 6 15:08:41 UTC 2024
On Mon, 10 Jun 2024 13:18:43 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.
This pull request has now been integrated.
Changeset: 6f7f0f1d
Author: Per Minborg <pminborg at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6f7f0f1de05fdc0f6a88ccd90b806e8a5c5074ef
Stats: 38 lines in 4 files changed: 30 ins; 1 del; 7 mod
8333884: MemorySegment::reinterpret removes read-only property
Reviewed-by: jvernee, mcimadamore
-------------
PR: https://git.openjdk.org/jdk/pull/19629
More information about the core-libs-dev
mailing list