Integrated: 7903704: Expose addresses of native functions

Jorn Vernee jvernee at openjdk.org
Fri Apr 5 12:21:09 UTC 2024


On Tue, 2 Apr 2024 15:08:48 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> Add accessors for the address of a native function. This follows the jextract principle of exposing all the information that it has.
> 
> The address is useful in cases where a user needs to pass the address of a native function to be used as a callback by another (higher-order) native function.
> 
> Note: while working on this I noticed that the `TestUtils` file was not being rebuilt when dependent tests were running. Many tests depend on this file to compile generated source code for instance. I've added the needed `@build` tags, and `lib.build` property (the latter only works for the tests under `TestNG.dirs`).

This pull request has now been integrated.

Changeset: 73130fcd
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/73130fcd7178262055f4e23278ed179c9d67cc75
Stats:     176 lines in 47 files changed: 169 ins; 1 del; 6 mod

7903704: Expose addresses of native functions

Reviewed-by: mcimadamore

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

PR: https://git.openjdk.org/jextract/pull/228


More information about the jextract-dev mailing list