-
Notifications
You must be signed in to change notification settings - Fork 25
Update FFI related code for compilation in JDK20 #12
Update FFI related code for compilation in JDK20 #12
Conversation
Reviewed-by: lmesnik
…ty.jgss Reviewed-by: weijun
8298070: ProblemList jdk/internal/vm/Continuation/Fuzz.java#default with ZGC on X64 8298071: ProblemList tests failing due to JDK-8298059 8298072: ProblemList compiler/c1/TestPrintC1Statistics.java in Xcomp mode on linux-aarch64 Reviewed-by: azvegint
Reviewed-by: alanb
Reviewed-by: jpai, michaelm
…g too narrow type which is later replaced by top Reviewed-by: thartmann, rcastanedalo, kvn
Reviewed-by: aboldtch, rschmelter
…ecTest.java intermittently timeout Reviewed-by: weijun, wetmore
Reviewed-by: dfuchs, mullan, rriggs, alanb
…oRecovery Reviewed-by: vromero
Reviewed-by: kvn, vlivanov
Reviewed-by: vromero
Reviewed-by: coleenp, stuefe, dholmes
…eview) Co-authored-by: Jorn Vernee <jvernee@openjdk.org> Co-authored-by: Per Minborg <pminborg@openjdk.org> Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org> Reviewed-by: jvernee, pminborg, psandoz, alanb, sundar
Co-authored-by: Jorn Vernee <jvernee@openjdk.org> Co-authored-by: Nick Gasson <ngasson@openjdk.org> Co-authored-by: Per Minborg <pminborg@openjdk.org> Reviewed-by: rehn, mcimadamore, vlivanov
Reviewed-by: mdoerr, stuefe
Reviewed-by: jpai
Reviewed-by: mcimadamore
Reviewed-by: jjg
…pers/Util.java Reviewed-by: kizune, aivanov
…hange of TextComponent sends TextEvent Reviewed-by: honkar, aivanov
…th "Expected outer stream to have 3 events" Reviewed-by: mgronlun
Reviewed-by: dcubed
Fixes: eclipse-openj9/openj9#16276 Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
…e number of mismatched pixels [1024] of [1024] is < [0.100000] threshold" Reviewed-by: almatvee
Reviewed-by: almatvee
Reviewed-by: aivanov
…lude position Reviewed-by: vromero
… in G1 Reviewed-by: tschatzl, ayang
…ication Reviewed-by: thartmann, kvn
@pshipton No concerns |
The change is to simply replace the outdated APIs in all FFI specific code against the latest APIs for JEP434 as follows to have them compiled successfully in JDK20: 1) replaced MemorySession with SegmentScope 2) replaced MemoryAddress with MemorySegment Note: The code is likely to be updated further to ensure it literally works in this way after all FFI related code is updated for JEP434 in JDK20. Signed-off-by: ChengJin01 <jincheng@ca.ibm.com>
9128833
to
d7fae96
Compare
Pls fix the PR title and description to cover both of the commits. |
The PR title plus description is updated accordingly as requested. |
src/java.base/share/classes/jdk/internal/foreign/abi/aarch64/CallArranger.java
Outdated
Show resolved
Hide resolved
src/java.base/share/classes/jdk/internal/foreign/abi/ppc64/aix/AixPPC64Linker.java
Outdated
Show resolved
Hide resolved
d7fae96
to
501a63b
Compare
@keithc-ca did you get all the changes you requested? |
Almost: #12 (comment) |
@ChengJin01 Can you remove the redundant uses of "[FFI]" in the commit messages and descriptions of this and eclipse-openj9/openj9#16585, please? |
501a63b
to
96ac28c
Compare
Removed as suggested above. |
This doesn't compile in its current state;
|
This is because we removed Please note the
which means we need to restore |
The change is to disable all downcall & upcall code specific to FFI in OpenJDK for the moment to ensure it gets compiled in JDK20 as we have been working on the changes in OpenJDK & OpenJ9 to deal with the latest APIs intended for JEP434. Signed-off-by: ChengJin01 <jincheng@ca.ibm.com>
96ac28c
to
7608d05
Compare
As discussed with @keithc-ca offline, we have to restore As for the non-static methods on Aarch64 in which |
I double-checked the code at https://github.com/ibmruntimes/openj9-openjdk-jdk20/blob/master/src/java.base/share/classes/jdk/internal/foreign/abi/aarch64/CallArranger.java#L99
and Line 59 in 96afd1c
The reason why the instance method
where there is no Based on the setting above in OpenJDK, it's correct for the latest changes (already done in 7608d05) in which case |
Jenkins compile alinux64 jdk20 depends eclipse-openj9/openj9#16585 |
The change is to update the code specific to FFI in OpenJDK
to ensure it gets compiled in JDK20 as we have been working
on the changes in OpenJDK & OpenJ9 to deal with the latest
APIs intended for JEP434.
Commit 1: Replace part of FFI APIs with the latest APIs in JDK20
Commit 2: Disable FFI related code in OpenJDK for JDK20
Note:
Further changes for all FFI related code in JEP434/JDK20 will be made via eclipse-openj9/openj9#16329.
Signed-off-by: ChengJin01 jincheng@ca.ibm.com