Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FFI] Update the code against the changes in JDK21 #17188

Conversation

ChengJin01
Copy link
Contributor

The changes implement makeFactory() in UpcallLinker
so as to wrap up the existing upcall specific code in
CallArranger.arrangeUpcall() with UpcallStubFactory
which was introduced in JDK20.

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

@ChengJin01
Copy link
Contributor Author

ChengJin01 commented Apr 13, 2023

Note:
[1] There is no public API changes for this early version of OpenJDK except the code refactoring with UpcallStubFactory in sharing the same the function descriptor (see related code at https://github.com/ibmruntimes/openj9-openjdk-jdk/blob/0d351c29e23a5227d038bacb8fd8e03be99da719/src/java.base/share/classes/jdk/internal/foreign/abi/AbstractLinker.java#L100 & https://bugs.openjdk.org/browse/JDK-8302346 for details)
[2] The test suite Java21andUp (manually verified on Fyre machines) is directly copied from Java20andUp with the changes on the naming given there is no update in public APIs (they will be updated accordingly once new changes in #16951 come up)

Reviewer: @tajila
FYI: @pshipton, @keithc-ca

@ChengJin01 ChengJin01 force-pushed the ffi_update_code_against_changes_jdk21 branch from 6717d9e to 6eaa670 Compare April 14, 2023 13:26
@ChengJin01 ChengJin01 force-pushed the ffi_update_code_against_changes_jdk21 branch 2 times, most recently from 12bdc4b to 78d367e Compare April 14, 2023 22:00
@ChengJin01 ChengJin01 force-pushed the ffi_update_code_against_changes_jdk21 branch from 78d367e to fbd6bef Compare April 17, 2023 16:07
@keithc-ca
Copy link
Contributor

Tested in ibmruntimes/openj9-openjdk-jdk#585.

@tajila
Copy link
Contributor

tajila commented Apr 17, 2023

@ChengJin01 small typo

We dont need to redo testing for this small change

The changes implement makeFactory() in UpcallLinker
so as to wrap up the existing upcall specific code in
CallArranger.arrangeUpcall() with UpcallStubFactory
which was introduced in JDK20.

Signed-off-by: ChengJin01 <jincheng@ca.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:vm jdk21 project:panama Used to track Project Panama related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants