RFR: 8319928: Exceptions thrown by cleanup actions should be handled correctly [v5]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Nov 16 18:38:54 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 one additional commit since the last revision:

  Add test to check for self-suppression

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/16619/files
  - new: https://git.openjdk.org/jdk/pull/16619/files/3e5f7ae4..b1dde897

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

  Stats: 25 lines in 1 file changed: 25 ins; 0 del; 0 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