MethodHandles: an IBM implementation

From JVMLangSummit
Revision as of 16:25, 5 August 2010 by Jrose (talk | contribs)
Jump to navigationJump to search
Dan Heidinga, IBM
Media:J9 MethodHandle Impl.pdf


This session will provide an overview of the IBM implementation strategy for the key feature of JSR 292: MethodHandles. Implementation tricks and challenges will be presented. The polymorphic signatures of MethodHandle.invoke{Exact,Generic} are one of the challenges we’ll address. A strategy for dividing MethodHandles into two kinds: “primitive” handles and Java-level handles, and the class hierarchy required by this division will be discussed. We’ll also show how to convert invokeGeneric() into an asType() and cover some of the JIT tricks used in our implementation.