[jdk19] RFR: 8287809: Revisit implementation of memory session [v4]

Jorn Vernee jvernee at openjdk.org
Wed Jul 6 17:00:47 UTC 2022


On Fri, 17 Jun 2022 18:39:03 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> This is a JDK 19 clone of: https://github.com/openjdk/jdk/pull/9017
>
> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Revert implicit vs. heap session changes

Am I understanding correctly that, before calling `checkValidState` we also need to always call `baseSession()`? `checkValidState()` just calls `checkValidStateRaw` in a try/catch, and for non-closeable views this always throws.

There seem to be many cases where `baseSession()` is not called...

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

PR: https://git.openjdk.org/jdk19/pull/22


More information about the core-libs-dev mailing list