[foreign-abi] RFR: 8248420: Add a variant of VaList::make which takes a NativeScope [v6]

Jorn Vernee jvernee at openjdk.java.net
Thu Jul 16 14:05:14 UTC 2020


On Thu, 16 Jul 2020 13:46:11 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> 
> 
> From user perspective it does look simpler, as now all va lists behave similarly. One minor comment is that, I think,
> you can use just a memory scope to track liveness, instead of creating a full segment (since you never really use its
> segment-y properties)

Using a MemoryScope doesn't work out of the box since we can't register it with the NativeScope. That would require
quite a bit of surgery to AbstractNativeScope it seems. While I think it's possible, I think we should keep the
'damage' minimal, since this is already a bit of a hack.

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

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


More information about the panama-dev mailing list