[9] RFR (S): 8075263: MHI::checkCustomized isn't eliminated for inlined MethodHandles

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Mon Mar 16 18:47:44 UTC 2015


When MethodHandle is a compile-time constant and it is inlined in 
MethodHandle.invoke/invokeExact there's no need in MHI::checkCustomized 
call. It should be eliminated since it adds some overhead on fast path.

The fix is to add new intrinsic (MHI::isCompileConstant) and use it to 
prune MHI::checkCustomized logic when MethodHandle is a constant.

Testing: java/lang/invoke, nashorn, octane

Best regards,
Vladimir Ivanov

More information about the hotspot-compiler-dev mailing list