RFR: 7903626: Add struct helper method to reintrepret an array of structs

Jorn Vernee jvernee at openjdk.org
Tue Jan 16 15:30:51 UTC 2024


On Tue, 16 Jan 2024 15:25:34 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> This patch renames the existing `ofAddress` method we generate in struct classes to `reinterpret` to reflect the latest naming changes in the FFM API. It also adds another overload that takes an element count, for reinterpreting arrays. Finally, this patch adds the missing cleanup parameter that the underlying reinterpret method accepts.
>
> test/TEST.groups line 14:
> 
>> 12:     jtreg/generator/test8252016/Test8252016.java \
>> 13:     jtreg/generator/test8252121/Test8252121.java \
>> 14:     jtreg/generator/reinterpret/TestReinterpret.java \
> 
> uhmmm - I did not realized we had to update this manually (for the other PRs...)

Intellij saved me here and caught it here too.

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

PR Review Comment: https://git.openjdk.org/jextract/pull/178#discussion_r1453589520


More information about the jextract-dev mailing list