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

Jorn Vernee jvernee at openjdk.org
Thu Dec 14 22:34:09 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.

This pull request has now been integrated.

Changeset: 28efa24f
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/28efa24f20bb429d7558a2bb0170a1eb8bf7fa00
Stats:     138 lines in 4 files changed: 137 ins; 0 del; 1 mod

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

Co-authored-by: Lost Illusion <im at lostillusion.net>
Reviewed-by: mcimadamore

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

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


More information about the jextract-dev mailing list