Fold Invokers.checkVarHandleGenericType using const refs#23639
Conversation
matthewhall2
commented
Apr 2, 2026
- Modifies getMethodHandleTableEntryIndex to use the asTypeCache when there is no exact MethodType match and the cache is non-null.
- folds the call to a const ref load when the KOI is not UNKNOWN
9eadcd7 to
6a72ea1
Compare
6a72ea1 to
0b27535
Compare
nbhuiyan
left a comment
There was a problem hiding this comment.
Other than the few minor comments, LGTM.
|
@0xdaryl can you run the tests with eclipse-omr/omr#8209 ? |
|
Jenkins test sanity all jdk21 depends eclipse-omr/omr#8209 |
0b27535 to
e09d7af
Compare
|
windows sanity.functional fails look related to #22758 (comment) windows sanity.openjdk fail was caused by the assertion fail "orphaned const ref", I've pushed the fix for that |
|
Jenkins test sanity all jdk21 depends eclipse-omr/omr#8209 |
|
You may need to rebase this and we try again. |
e09d7af to
6f0b6c4
Compare
|
rebased |
|
Jenkins test sanity xlinux,plinux,alinux,zlinux jdk21 depends eclipse-omr/omr#8209 Starting small, with just the Linux platforms first. |
a114640 to
f7b44cc
Compare
|
Z failure is from the vector API tests, which Ehsan confirmed was fixed. I did rebase OMR but I guess I need to again. |
|
Jenkins test sanity xlinux,plinux,alinux,zlinux jdk21 depends eclipse-omr/omr#8209 |
|
@matthewhall2 I had a few comments in my approval (approved with comments instead of requesting changes as it was just prior to me going on vacation) that have not been addressed yet. |
nbhuiyan
left a comment
There was a problem hiding this comment.
Please review the last set of comments.
647f284 to
6ee1978
Compare
|
thanks @nbhuiyan , I somehow missed these. I've now addressed the comments |
|
Jenkins test sanity xlinux,plinux,alinux,zlinux jdk21 depends eclipse-omr/omr#8209 |
|
zlinux failures I have seen this when doing perf experiments with constrefs enabled on x86-64. jdk_int128vector_j9_0, jdk_byte128vector_j9_0, jdk_long128vector_j9_0, jdk_short128vector_j9_0 fail without a clear error message. We have seen this type of failure before: #24071 |
|
Jenkins test sanity win,aix,xmac,amac jdk21 depends eclipse-omr/omr#8209 |
@nbhuiyan Testing from this PR hits the same assert I was hitting when running AcmeAir/Daytrader with your prototype. Did that prototype include this change? |
The prototype I shared with you included the change in eclipse-omr/omr#8209, which then results in the assertion failure due to missing CPG edges. That needs to be addressed first so that the tests pass. I am working on that. |
- Modifies getMethodHandleTableEntryIndex to use the asTypeCache when there is no exact MethodType match and the cache is non-null. - folds the call to a const ref load when the KOI is not UNKNOWN Signed-off-by: Matthew Hall <matthew.hall3@outlook.com>
6ee1978 to
f5605da
Compare
|
rebase was needed to fix the mac build errors |
|
Jenkins test sanity all jdk21 depends eclipse-omr/omr#8209 |
|
windows had one SCC test fail due to not being able to destroy the SCC. This is a known issue. |
|
Since all test failures are accounted for and all review comments have been addresses, this PR is ready to be merged. |