Integrated: Backport: 7903449: Jextract generates structs that cannot be compiled
Jorn Vernee
jvernee at openjdk.org
Fri Apr 14 13:31:03 UTC 2023
On Sun, 9 Apr 2023 00:32:09 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Backport https://github.com/openjdk/jextract/pull/117 to the master branch.
>
> Patch applied relatively cleanly. I had to change some reference from `Arena` to `SegmentScope` in the generated code, and there was a reference to `MS::reinterpret` that was changed back to `ofAddress`.
>
> Additional changes needed:
> - AddressLayout -> ValueLayout.ofAddress
> - AddressLayout::withTargetLayout -> AddressLayout::asUnbounded
> - reimplement ValueLayout::withoutName as helper function
This pull request has now been integrated.
Changeset: cf3afe9c
Author: Jorn Vernee <jvernee at openjdk.org>
URL: https://git.openjdk.org/jextract/commit/cf3afe9ca71592c8ebb32f219707285dd1d5b28a
Stats: 1370 lines in 10 files changed: 600 ins; 644 del; 126 mod
Backport: 7903449: Jextract generates structs that cannot be compiled
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/jextract/pull/118
More information about the jextract-dev
mailing list