8340280: Avoid calling MT.invokerType() when creating LambdaForms

Reviewed-by: liach, jvernee
This commit is contained in:
Claes Redestad 2024-09-18 07:01:13 +00:00
parent 147e30070d
commit d23c59e408
6 changed files with 48 additions and 43 deletions

View file

@ -143,7 +143,7 @@ abstract sealed class DelegatingMethodHandle extends MethodHandle
final int PRE_ACTION = hasPreAction ? nameCursor++ : -1;
final int NEXT_MH = customized ? -1 : nameCursor++;
final int REINVOKE = nameCursor++;
LambdaForm.Name[] names = LambdaForm.arguments(nameCursor - ARG_LIMIT, mtype.invokerType());
LambdaForm.Name[] names = LambdaForm.invokeArguments(nameCursor - ARG_LIMIT, mtype);
assert(names.length == nameCursor);
names[THIS_DMH] = names[THIS_DMH].withConstraint(constraint);
Object[] targetArgs;