Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

[FFI]Inline the missing libc functions for symbol lookup on AIX #75

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

ChengJin01
Copy link

The changes aim to support the symbol lookup via FFI for
the missing libc functions in loading the default library on
AIX by inlining their address into a function list in native to
ensure they are correctly invoked with the native address
fetched in the FFI code.

Fixes: #eclipse-openj9/openj9/issues/16386

Signed-off-by: ChengJin01 jincheng@ca.ibm.com

@ChengJin01
Copy link
Author

The PR is verified with the FFI specific test suites in OpenJ9 and the Jtreg test suite StdLibTest,java in eclipse-openj9/openj9#16386.

Reviewer: @pshipton
FYI: @tajila

The changes aim to support the symbol lookup via FFI for
the missing libc functions in loading the default library
on AIX by inlining their address into a function list in
native to ensure they are correctly invoked with the
native address fetched in the FFI code.

Fixes: #eclipse-openj9/openj9/issues/16386

Signed-off-by: ChengJin01 <jincheng@ca.ibm.com>
@ChengJin01 ChengJin01 force-pushed the ffi_inline_libc_func_jdk19 branch from 13e21dc to f1526bb Compare March 3, 2023 23:07
@pshipton
Copy link
Member

pshipton commented Mar 3, 2023

jenkins compile aix jdk19

@pshipton
Copy link
Member

pshipton commented Mar 3, 2023

Pls port this to the other versions as well.

@ChengJin01
Copy link
Author

Pls port this to the other versions as well.

PRs are created at ibmruntimes/openj9-openjdk-jdk20#22 & ibmruntimes/openj9-openjdk-jdk#557.

@pshipton
Copy link
Member

pshipton commented Mar 4, 2023

Grinder running java/foreign/StdLibTest.java passed.
https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/2067

Opened adoptium/aqa-tests#4388 to unexclude the test.

@pshipton pshipton merged commit 9d52294 into ibmruntimes:openj9 Mar 4, 2023
@pshipton
Copy link
Member

pshipton commented Mar 4, 2023

#76 will add this to the 0.37 release branch.

pshipton added a commit to pshipton/openjdk-tests that referenced this pull request Mar 4, 2023
Fixed via
ibmruntimes/openj9-openjdk-jdk19#75

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
sophia-guo pushed a commit to adoptium/aqa-tests that referenced this pull request Mar 4, 2023
Fixed via
ibmruntimes/openj9-openjdk-jdk19#75

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants