Integrated: 8314949: linux PPC64 Big Endian: Implementation of Foreign Function & Memory API

Martin Doerr mdoerr at openjdk.org
Wed Sep 6 08:29:58 UTC 2023


On Thu, 24 Aug 2023 13:56:12 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> I've found a way to solve the remaining FFI problem on linux PPC64 Big Endian. Large structs (>8 Bytes) which are passed in registers or on stack require shifting the Bytes in the last slot if the size is not a multiple of 8. This PR adds the required functionality to the Java code.
> 
> Please review and provide feedback. There may be better ways to implement it. I just found one which works and makes the tests pass:
> 
> Test summary
> ==============================
>    TEST                                              TOTAL  PASS  FAIL ERROR   
>    jtreg:test/jdk/java/foreign                          88    88     0     0   
> 
> 
> Note: This PR should be considered as preparation work for AIX which also uses ABIv1.

This pull request has now been integrated.

Changeset: f6c203e6
Author:    Martin Doerr <mdoerr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f6c203e61620dc130b8c366f824e6923fca52e82
Stats:     311 lines in 11 files changed: 295 ins; 8 del; 8 mod

8314949: linux PPC64 Big Endian: Implementation of Foreign Function & Memory API

Reviewed-by: mcimadamore, jvernee

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

PR: https://git.openjdk.org/jdk/pull/15417


More information about the core-libs-dev mailing list