another question about megamorphic call sites in combination with MethodHandles
Jochen Theodorou
blackdrag at gmx.org
Thu Mar 21 01:23:21 PDT 2013
Hi all,
assuming I have in Java a method:
public static Object invoke(MethodHandle mh, Object[] args) {
try {
return mv.invokeWithArguments(args);
} catch (Throwable th) {
ExceptionUtils.sneakyThrow(th);
}
}
(sneakyThrow is to work around checked exceptions and does basically
just throw the throwable again without declaring it)
I am wondering if the call site in this method can become megamorphic or
not. And assuming it does not, I further assume the call to this method
cannot become megamorphic as well... so my next question is if that can
be always be potentially inlined then.
bye blackdrag
--
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org
More information about the mlvm-dev
mailing list