RFR: 8319928: Exceptions thrown by cleanup actions passed to reinterpreted segments should be ignored [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Mon Nov 13 16:09:10 UTC 2023


> This simplePR tweaks the factory which wraps custom cleanup actions passed to `MemorySegment::reinterpret`, so that any exception thrown by the custom cleanup is swallowed when the arena is closed.
> 
> This aligns the behavior of confined/shared session with that of implicit session (as implicit sessions are backed by a `Cleaner`, there is no way for cleanup exception to bubble up).

Maurizio Cimadamore has updated the pull request incrementally with three additional commits since the last revision:

 - More javadoc tweaks
 - Tweak javadoc
 - Catch all cleanup failures in `CleanupException`

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/16619/files
  - new: https://git.openjdk.org/jdk/pull/16619/files/6eb8998a..5f57ab3c

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

  Stats: 105 lines in 4 files changed: 91 ins; 4 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/16619.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16619/head:pull/16619

PR: https://git.openjdk.org/jdk/pull/16619


More information about the core-libs-dev mailing list