[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
http://cr.openjdk.java.net/~vlivanov/8075263/webrev.00/hotspot
http://cr.openjdk.java.net/~vlivanov/8075263/webrev.00/jdk
https://bugs.openjdk.java.net/browse/JDK-8075263
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