Description
System Details
Darwin Kernel Version 20.5.0 /arm64
$ clang --version
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: arm64-apple-darwin20.5.0
Problems Description
The latest code of libffi/Aarch64
at https://github.com/libffi/libffi/tree/master/src/aarch64 was integrated to our code at https://github.com/eclipse-openj9/openj9/tree/master/runtime/libffi/aarch64 to support JNI call to native on macOS/Aarch64
which works good in the majority of tests except test cases with the mixed type arguments, including primitives, struct and function pointers, in which the arguments after struct were messed up (please see eclipse-openj9/openj9#16336 (comment) for details).
Here's one of the failing test cases at sample.c.txt.
Assuming libffi/Aarch64
should work for both macOS
and iOS
, I am wondering whether anybody here can help us to figure out what happened in such case (more failing test cases can be found at eclipse-openj9/openj9#16336 (comment) and eclipse-openj9/openj9#16336 (comment)).