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

Jorn Vernee jvernee at openjdk.org
Mon Nov 13 22:20:28 UTC 2023


On Mon, 13 Nov 2023 16:09:10 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> 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`

Marked as reviewed by jvernee (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/16619#pullrequestreview-1728378083


More information about the core-libs-dev mailing list