RFR: 8317545: AIX PPC64: Implementation of Foreign Function & Memory API [v5]

null duke at openjdk.org
Wed Nov 1 17:24:02 UTC 2023


On Tue, 17 Oct 2023 14:17:20 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

>> The AIX linker has a few minor diffs to the linux ABIv1 linker. In addition, double values have only 4 Byte alignment within structures. This PR is based on JDK22 version of the FFI.
>
> Martin Doerr has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Improve handling of layouts in NativeType.java
>  - Check byte order of 4-byte aligned double.

Tested Martins changes using symbol resolution fix. 

==============================
Test summary
==============================
   TEST                                              TOTAL  PASS  FAIL ERROR   
>> jtreg:test/jdk/java/foreign                          91    86     5     0 <<
==============================
TEST FAILURE


Some of the test cases have passed after using pragma natural directive. 
Rest of the Failing test cases are as below, which need to be investigated later on. 


# newfailures.txt
java/foreign/TestUpcallAsync.java 
java/foreign/enablenativeaccess/TestEnableNativeAccess.java 
java/foreign/enablenativeaccess/TestEnableNativeAccessJarManifest.java 
java/foreign/loaderLookup/TestLoaderLookupJNI.java 
java/foreign/stackwalk/TestAsyncStackWalk.java#default_gc 


However, majority of the test cases are passing now.

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

PR Comment: https://git.openjdk.org/jdk/pull/16179#issuecomment-1789353270


More information about the core-libs-dev mailing list