RFR: 8340307: Add explanation around MemorySegment:reinterpret regarding arenas [v2]

Per Minborg pminborg at openjdk.org
Thu Oct 31 13:42:03 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Improve docs from comments made in the PR
 - Merge branch 'master' into reinterpret-doc
 - Add doc on original arena is responsible for freeing a segment

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/21761/files
  - new: https://git.openjdk.org/jdk/pull/21761/files/1fba68fe..a2f73b6e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=21761&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21761&range=00-01

  Stats: 55230 lines in 1056 files changed: 12387 ins; 40471 del; 2372 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