[foreign-preview] RFR: 8281855: Rename ResourceScope to MemorySession [v5]
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Mon Feb 21 11:40:38 UTC 2022
> 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 with a new target base due to a merge or a rebase. The pull request now contains 10 commits:
- Merge branch 'foreign-preview' into session_preview
- Address review comments
* replace spurious usages of `scope` in direct buffer template
- Update src/java.base/share/classes/java/lang/ClassLoader.java
Co-authored-by: Paul Sandoz <paul.d.sandoz at googlemail.com>
- Update src/java.base/share/classes/java/nio/Direct-X-Buffer.java.template
Co-authored-by: Paul Sandoz <paul.d.sandoz at googlemail.com>
- Fix more spurious usages of ResourceScope
- Fix whitespaces
- Merge branch 'foreign-preview' into session_preview
- Fix reference to ResourceScope in javadoc
- Fix MemorySession javadoc
- Initial push
-------------
Changes: https://git.openjdk.java.net/panama-foreign/pull/641/files
Webrev: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=641&range=04
Stats: 4701 lines in 139 files changed: 1501 ins; 1333 del; 1867 mod
Patch: https://git.openjdk.java.net/panama-foreign/pull/641.diff
Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/641/head:pull/641
PR: https://git.openjdk.java.net/panama-foreign/pull/641
More information about the panama-dev
mailing list