[foreign-abi] RFR: 8228762: import CallingSequenceBuilder unit tests

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Jul 30 16:05:38 UTC 2019


Looks good, but I'm a bit puzzled by the ArgumentClassTest; in general 
the test seems pretty obscure - but there's also the problem that the 
test is ultimately SysV specific, so it will only stress the 
ArgumentClassImpl specific to SysV. Not sure this test is robust enough 
(as the other) to make the cut, to be honest.

What do you think?

Maurizio

On 30/07/2019 02:24, Nick Gasson wrote:
> Hi,
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8228762
> Webrev: http://cr.openjdk.java.net/~ngasson/foreign/8228762/
>
> This patch modifies the three CallingSequenceTest unit tests from the 
> foreign branch to work with the MemoryLayout API in foreign-abi. Also 
> changed the AArch64 test to use CallingSequenceTestBase to match 
> Windows/SysV.
>
> I also modified MemoryLayouts so the AArch64 C_* constants are all 
> little rather than big endian. Although the ABI officially supports 
> both big and little endian, big endian is almost never used in 
> practice, and in Hotspot we only support little endian AArch64.
>
> Thanks,
> Nick


More information about the panama-dev mailing list