[foreign-jextract] Integrated: 8249810: Jextract should generate parameter types with Addressable type
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Wed Jul 22 10:37:10 UTC 2020
On Tue, 21 Jul 2020 16:48:47 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch tweaks jextract so that all foreign functions wrappers use the new Addressable carrier type, as opposed to
> the more specific MemoryAddress type. This is useful, as now clients can call such functions with either an address or
> a segment, w/o any need to call `MemorySegment::address`. The bulk of the changes are in the TypeTranslator visitor,
> which now has a parameter which says as to whether an addressable should be used. There are also some changes in the
> HeaderBuilder class, as we now need to call `Addressable::address` on any incoming addressable parameter (since the
> method handle generated by the linker expects a `MemoryAddress`).
This pull request has now been integrated.
Changeset: 8d8a1d35
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.java.net/panama-foreign/commit/8d8a1d35
Stats: 33 lines in 6 files changed: 2 ins; 17 del; 14 mod
8249810: Jextract should generate parameter types with Addressable type
Reviewed-by: jvernee, sundar
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/257
More information about the panama-dev
mailing list