RFR: 7903239: ofAddress factory of function pointer type is wrong for struct returns

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Dec 14 22:16:07 UTC 2023


On Thu, 14 Dec 2023 15:10:12 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> This is a more up-to-date version of: https://github.com/openjdk/jextract/pull/58 which takes the recent re-writes into account.
> 
> For callbacks that return a struct by-value, we need a SegmentAllocator. We can re-use the Arena we use as a scope for the function pointer we are wrapping. If a user wants a different allocator in different circumstances, they can just re-wrap the pointer and pass another Arena.

Looks good!

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

Marked as reviewed by mcimadamore (Committer).

PR Review: https://git.openjdk.org/jextract/pull/162#pullrequestreview-1782846648


More information about the jextract-dev mailing list