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

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Nov 10 16:38:06 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).

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

Commit messages:
 - Initial push

Changes: https://git.openjdk.org/jdk/pull/16619/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16619&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8319928
  Stats: 20 lines in 3 files changed: 17 ins; 0 del; 3 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