RFR (S): [MVT] Support lambda form customization in LambdaFormBuilder

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Wed Jul 19 17:40:10 UTC 2017


Implement lambda form customization in LambdaFormBuilder. (Duplicated 
logic from InvokerBytecodeGenerator.)

LF customization is crucial for performant MH.invoke() and 
MH.invokeExact() on non-constant method handles. It enables 
JIT-compilers to generate a single nmethod for the whole method handle 

Otherwise, the method handle chain scatters into numerous nmethods (one 
for each method handle) which severely affects performance (especially 
for MVT where Q-typed lambda forms can't be compiled as a root.)

Testing: jdk/test/valhalla/mvt/

Best regards,
Vladimir Ivanov

More information about the valhalla-dev mailing list