RFR: 8340307: Add explanation around MemorySegment:reinterpret regarding arenas [v3]
Per Minborg
pminborg at openjdk.org
Thu Oct 31 14:29:47 UTC 2024
> This PR proposes to add a small text segment on the `MemorySegment::reinterpret` overloads that takes an Arena stating the responsibility of actually freeing reinterpreted segments lies with the *original* arena.
Per Minborg has updated the pull request incrementally with two additional commits since the last revision:
- Update src/java.base/share/classes/java/lang/foreign/MemorySegment.java
Co-authored-by: Jorn Vernee <JornVernee at users.noreply.github.com>
- Update test/jdk/java/foreign/TestSegments.java
Co-authored-by: Jorn Vernee <JornVernee at users.noreply.github.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/21761/files
- new: https://git.openjdk.org/jdk/pull/21761/files/a2f73b6e..0ab8ec11
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=21761&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=21761&range=01-02
Stats: 3 lines in 2 files changed: 0 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/21761.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21761/head:pull/21761
PR: https://git.openjdk.org/jdk/pull/21761
More information about the core-libs-dev
mailing list