[foreign-preview] RFR: 8281855: Rename ResourceScope to MemorySession [v4]
Paul Sandoz
psandoz at openjdk.java.net
Sat Feb 19 00:56:05 UTC 2022
On Fri, 18 Feb 2022 21:55:46 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> This patch implements some of the changes described in [1] and [2]. More specifically, the `ResourceScope` abstraction is renamed into `MemorySession`, and the session accessors in `MemorySegment`, `NativeSymbol` and `VaList` are tweaked to return *non-closeable* session views. To counteract this change, `MemorySession` now supports `equals` and `hashCode`, so that sessions views can be compared to each other in ways that are not identity-sensitive.
>>
>> [1] - https://mail.openjdk.java.net/pipermail/panama-dev/2022-February/016152.html
>> [2] - https://mail.openjdk.java.net/pipermail/panama-dev/2022-February/016254.html
>
> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
>
> Address review comments
> * replace spurious usages of `scope` in direct buffer template
Marked as reviewed by psandoz (Committer).
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/641
More information about the panama-dev
mailing list