Few questions about invokeDynamic

Rémi Forax forax at univ-mlv.fr
Sun Nov 7 17:06:05 PST 2010


> John, I wonder if invokeVarargs() with 0 argument should
> use invokeGeneric instead of the genericInvoker.
> Also it seems that there is no check in the VM that the default target
> of a switch can be not taken.
>    

In fact, it's not related to a switch. C2 generates code even
if the branch was never taken.
In case of invoke varargs, the code that handles more than 10 arguments
is generated even if it's never called.

Rémi


More information about the mlvm-dev mailing list