[foreign-preview] Integrated: 8281855: Rename ResourceScope to MemorySession

Maurizio Cimadamore mcimadamore at openjdk.java.net
Mon Feb 21 15:50:10 UTC 2022


On Tue, 15 Feb 2022 17:32:50 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

This pull request has now been integrated.

Changeset: 9214de40
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/panama-foreign/commit/9214de405df46073544e1535f4399d82c6226333
Stats:     4693 lines in 139 files changed: 1496 ins; 1328 del; 1869 mod

8281855: Rename ResourceScope to MemorySession

Reviewed-by: psandoz, jvernee

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

PR: https://git.openjdk.java.net/panama-foreign/pull/641


More information about the panama-dev mailing list