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

Marko duke at openjdk.org
Sat Oct 29 07:09:24 UTC 2022


> When generating the lambda inside the `ofAddress` factory, it is missing the `SegmentAllocator` needed when the function returns a struct. This is [implemented for regular functions](https://github.com/openjdk/jextract/blob/0582eaf1b4cdba95f0ee8c2480767433bb647d0d/src/main/java/org/openjdk/jextract/impl/HeaderFileBuilder.java#L122-L127), but not for function pointers.

Marko has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits:

 - Merge branch 'panama' into CODETOOLS-7903239
 - newline
 - update copyright
 - add proper tests
 - 7903239: ofAddress factory of function pointer type is wrong for struct returns

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

Changes: https://git.openjdk.org/jextract/pull/58/files
 Webrev: https://webrevs.openjdk.org/?repo=jextract&pr=58&range=04
  Stats: 104 lines in 4 files changed: 103 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jextract/pull/58.diff
  Fetch: git fetch https://git.openjdk.org/jextract pull/58/head:pull/58

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


More information about the jextract-dev mailing list