[foreign-preview] RFR: 8281855: Rename ResourceScope to MemorySession [v9]
Jorn Vernee
jvernee at openjdk.java.net
Mon Feb 21 15:38:48 UTC 2022
On Mon, 21 Feb 2022 15:19:40 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> No: `NativeSymbolImpl` wants a true, closeable MemorySessionImpl. Then, if you look at that class, its `session` method will return a non closeable view of that session. The `toSessionImpl` happens in `AbstractCLinker::upcallStub`.
>
> I see. I think that's fine, but maybe that call should be moved here for clarity? (or maybe just add an `assert session.isClosable()` for documentation).
Thanks, the comment helps :)
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/641
More information about the panama-dev
mailing list