[foreign-abi] Integrated: 8249803: Add LibraryLookup.Symbol

Maurizio Cimadamore mcimadamore at openjdk.java.net
Wed Jul 22 10:04:30 UTC 2020


On Tue, 21 Jul 2020 14:42:11 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This patch adds the LibraryLookup.Symbol, which implements Addressable, and that is returned on a successful symbol
> lookup. This patch also tweaks VaList to also implement the Addressable interface (VaList already had an `address()`
> method).  The `ForeignLinker::downcallHandle` method has been tweaked to accept an Addressable as a function entry
> point. This allows downcall handle to target not only native symbols, but also upcall stubs (since upcall stubs are
> segments, which are addressable) as well as native memory addresses.  Some tests needed minor tweaks.

This pull request has now been integrated.

Changeset: d3f53913
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/panama-foreign/commit/d3f53913
Stats:     81 lines in 19 files changed: 1 ins; 44 del; 36 mod

8249803: Add LibraryLookup.Symbol

Reviewed-by: psandoz, jvernee

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

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


More information about the panama-dev mailing list