[foreign-abi] RFR: 8253823: Investigate ways to make handoff-like operation more explicit [v2]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Wed Sep 30 10:15:54 UTC 2020


On Tue, 29 Sep 2020 22:48:02 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> Unsure if `MemorySegment` should closely couple with `NativeScope`, if there is an intention to separate out into base
> and/or other modules. Perhaps `NativeScope` is independently useful from the ABI that it should be pushed down into the
> memory-access branch and part of the core memory API?

I believe that NativeScope, although it was born as an ABI creature, makes sense as a standalone facility provided by
the memory access API. So, even if we decided to split ABI into a separate module, NativeScope would go inside the
foreign memory access API, as there's nothing ABI specific in there. It's at its core, an allocation helper.

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

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


More information about the panama-dev mailing list