MethodHandle for indirect/vtable call?
Nikita Nemkin
nikita at nemkin.ru
Fri Dec 11 15:16:00 UTC 2020
Hi all,
It seems that there's no native MethodHandle variant that takes a
function pointer in addition to function arguments. I expected such
method handles to be available for implementing indirect/vtable call
sites. Without them, MethodHandles can't be cached statically per
method (or per signature), since the target of each call could be
different.
Isn't static caching of method handles necessary for optimization?
What's the best practice for indirect calls?
This is important for wrapping Windows platform APIs, many of which
are COM-based.
More information about the panama-dev
mailing list