RFR: 8295044: Implementation of Foreign Function and Memory API (Second Preview) [v5]

Maurizio Cimadamore mcimadamore at openjdk.org
Mon Nov 7 15:01:39 UTC 2022


On Mon, 7 Nov 2022 14:17:40 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> This PR contains the API and implementation changes for JEP-434 [1]. A more detailed description of such changes, to avoid repetitions during the review process, is included as a separate comment.
>> 
>> [1] - https://openjdk.org/jeps/434
>
> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Bring windows CallArranger in sync with panama repo

I have incorporated additional API changes, described in this document:
http://cr.openjdk.java.net/~mcimadamore/panama/session_arenas.html

The main change is that `MemorySession` is now a pure lifetime abstraction and no longer implements `AutoCloseable`/`SegementAllocator`. Instead a new abstraction, called `Arena` should be used for deterministic deallocation use cases. This change allows several simplifications on the `MemorySession` API, as there's no more need to support non-closeable views.

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

PR: https://git.openjdk.org/jdk/pull/10872


More information about the hotspot-dev mailing list