RFR: 8314949: linux PPC64 Big Endian: Implementation of Foreign Function & Memory API [v5]
Martin Doerr
mdoerr at openjdk.org
Mon Sep 4 14:56:18 UTC 2023
> 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.
Martin Doerr has updated the pull request incrementally with one additional commit since the last revision:
Separate type cast from Shift bindings.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/15417/files
- new: https://git.openjdk.org/jdk/pull/15417/files/2f1c6775..27c4cc1b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=15417&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=15417&range=03-04
Stats: 77 lines in 2 files changed: 38 ins; 17 del; 22 mod
Patch: https://git.openjdk.org/jdk/pull/15417.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15417/head:pull/15417
PR: https://git.openjdk.org/jdk/pull/15417
More information about the core-libs-dev
mailing list