[foreign-jextract] RFR: 8248415: Create VarHandles for pointer fields through the MemoryHandles API [v2]

Jorn Vernee jvernee at openjdk.java.net
Thu Jul 2 15:30:21 UTC 2020


On Thu, 2 Jul 2020 14:02:28 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Filip Krakowski has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix some carrier entries within carrier map
>
> One of the tests is failing, and it looks like there's a bug. I've left an inline comment about that.

There should also be a test added for this use-case. You can use e.g.
https://github.com/openjdk/panama-foreign/blob/foreign-jextract/test/jdk/tools/jextract/Test8240811.java as an example.

The test is just running jextract using the methods in the JextractToolRunner super class, and is then using reflection
to verify that all the required elements are generated.

You can also check out doc/testing.{md|html}  for pointers on how to run tests. Generally it's as easy as configuring
with `--wtih-jtreg=path/to/jtreg` and then running `make run-test-jdk_jextract` (assuming that you also have the
libclang dependency set up).

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

PR: https://git.openjdk.java.net/panama-foreign/pull/216


More information about the panama-dev mailing list