RFR: Backport: 7903449: Jextract generates structs that cannot be compiled

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Apr 14 11:21:30 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

Looks good

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

Marked as reviewed by mcimadamore (Committer).

PR Review: https://git.openjdk.org/jextract/pull/118#pullrequestreview-1385268437


More information about the jextract-dev mailing list