[foreign-preview] RFR: 8281855: Rename ResourceScope to MemorySession
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Fri Feb 18 10:12:20 UTC 2022
On Fri, 18 Feb 2022 09:56:05 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> Ultimately that all felt a bit too much.
To be clear, it felt too much not because the refactoring was complex (it was not) but because this creates a problem of how do you name the non-closeable entity (`MemorySessionView` is fine when returned by `MemorySegment::session`, less fine when accepted by `MemorySegment::allocateNative`). And if you give it a more general name, then you end up with two abstractions fighting for API visibility.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/641
More information about the panama-dev
mailing list