Skip to content

Fold MethodHandle.asType in Lambdaform-generated methods#23481

Open
matthewhall2 wants to merge 1 commit intoeclipse-openj9:masterfrom
matthewhall2:mh_fold_asType
Open

Fold MethodHandle.asType in Lambdaform-generated methods#23481
matthewhall2 wants to merge 1 commit intoeclipse-openj9:masterfrom
matthewhall2:mh_fold_asType

Conversation

@matthewhall2
Copy link
Contributor

@matthewhall2 matthewhall2 commented Mar 10, 2026

  • Adds recognized method for Invokers.checkGenericType (the main callsite for MH.asType).
  • Folds call to the asTypeCache if the types are compatible and the asTypeCache is non-null.
    • Adds const provenance edge from the original MethodHandle to the asTypeCache (the result of the asType) methodhandle.

@matthewhall2 matthewhall2 requested a review from dsouzai as a code owner March 10, 2026 19:53
@matthewhall2 matthewhall2 force-pushed the mh_fold_asType branch 2 times, most recently from c36f547 to e7b9e2f Compare March 10, 2026 20:41
Adds recognized method for Invokers.checkGenericType (the callsite for
MH.asType).
Folds call to the asTypeCache if the types are compatible and the
asTypeCache is non-null

Signed-off-by: Matthew Hall <matthew.hall3@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant