-
Notifications
You must be signed in to change notification settings - Fork 754
[FFI/Test] Test suites intended for the duplicate ffi_type for struct #19922
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/Test] Test suites intended for the duplicate ffi_type for struct #19922
Conversation
4700c46
to
356fb45
Compare
The new test suites are verified in personal builds on all supported platforms. Reviewer: @tajila, @keithc-ca |
.../functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/DuplicateMixedCallTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/MultiThreadingTests6.java
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/MultiThreadingTests6.java
Show resolved
Hide resolved
d180da5
to
9b6226a
Compare
.../functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/DuplicateMixedCallTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/DuplicateStructTests.java
Outdated
Show resolved
Hide resolved
9b6226a
to
ee37591
Compare
@keithc-ca, is there anything else to be addressed in this PR? |
Yes, I have been reviewing the current state of this; I will share my comments tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've highlighted a number of unused imports; please remove those from other packages as well.
.../functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/DuplicateMixedCallTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/DuplicateStructTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/InvalidDownCallTests.java
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/MultiCallTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/MultiThreadingTests3.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/MultiThreadingTests5.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/MultiThreadingTests6.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/PrimitiveTypeTests1.java
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/PrimitiveTypeTests2.java
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/PrimitiveTypeTests3.java
Show resolved
Hide resolved
ee37591
to
63a6272
Compare
The description says "avoids the duplicate ffi_type for struct"; please explain what that means. |
2f0ad43
to
2f3fbe8
Compare
As explained in the description at #19714, we will need to optimize the existing code to avoid the creating duplicate ffi_type for the same struct in argument/return type in downcall (already updated the commit description to clarify that). |
2f3fbe8
to
9ec3dc2
Compare
@keithc-ca, I've gone through all related test suites with unused imports & displaced imports fixed. Please help cross-check whether anything else I ignored the latest update. |
9ec3dc2
to
35d9f5d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each of the comments from this round apply to several files other than those explicitly mentioned: please address those issues throughout.
test/functional/Java17andUp/src_170/org/openj9/test/jep389/upcall/InvalidUpCallTests.java
Outdated
Show resolved
Hide resolved
...ctional/Java17andUp/src_170/org/openj9/test/jep389/upcall/UpcallMHWithMixedSigStruTests.java
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/valist/ApiTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/valist/ApiTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/valist/DowncallTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java21Only/src/org/openj9/test/jep442/downcall/DuplicateMixedCallTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java21Only/src/org/openj9/test/jep442/downcall/DuplicateStructTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java21Only/src/org/openj9/test/jep442/downcall/PrimitiveTypeTests1.java
Outdated
Show resolved
Hide resolved
test/functional/Java21Only/src/org/openj9/test/jep442/downcall/UnionStructTests.java
Outdated
Show resolved
Hide resolved
35d9f5d
to
59ae9cb
Compare
test/functional/Java17andUp/src_170/org/openj9/test/jep389/downcall/DuplicateStructTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/valist/DowncallTests.java
Show resolved
Hide resolved
test/functional/Java17andUp/src_170/org/openj9/test/jep389/valist/UpcallTests.java
Show resolved
Hide resolved
test/functional/Java21Only/src/org/openj9/test/jep442/downcall/DuplicateMixedCallTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java21Only/src/org/openj9/test/jep442/upcall/UpcallMHWithUnionStructTests.java
Outdated
Show resolved
Hide resolved
59ae9cb
to
b642c47
Compare
test/functional/Java21Only/src/org/openj9/test/jep442/upcall/UpcallMHWithMixedSigStruTests.java
Outdated
Show resolved
Hide resolved
test/functional/Java22andUp/src/org/openj9/test/jep454/downcall/HeapArrayTests1.java
Show resolved
Hide resolved
.../functional/Java22andUp/src/org/openj9/test/jep454/upcall/UpcallMHWithMixedSigStruTests.java
Outdated
Show resolved
Hide resolved
The changes add new test suites which are used to verify the code that avoids creating the duplicate ffi_type for the same struct for arguments/return type in downcall. Also, these tests must work for the existing FFI specific implementation. Related: eclipse-openj9#19714 Signed-off-by: ChengJin01 <[email protected]>
b642c47
to
80abde0
Compare
Jenkins test sanity zlinux jdk17,jdk21,jdk22 |
@tajila Could you review this please? |
The changes add new test suites which are used to verify
the code that avoids creating the duplicate ffi_type for
the same struct for arguments/return type in downcall.
Also, these tests must work for the existing FFI specific
implementation.
Related: #19714
Signed-off-by: ChengJin01 [email protected]