RFR: 8183232: Avoid resolving method_kind in AbstractInterpreter::can_be_compiled

Claes Redestad claes.redestad at oracle.com
Thu Jun 29 16:13:07 UTC 2017

Hi all,

it appears profitable for startup to simplify 
to use methodHandle->intrinsic_id() rather than take a detour through 

webrev: http://cr.openjdk.java.net/~redestad/8183232/hotspot.00/
bug: https://bugs.openjdk.java.net/browse/JDK-8183232

Note: Having platform-dependent implementations for can_be_compiled 
seems excessive,
since if the intrinsic isn't implemented the corresponding case will 
never trigger anyway.
No regression can be detected on platforms that doesn't have certain 
intrinsics, such as
SPARC, but if there's preference I can revert to having 
platform-dependent methods.

Testing: JPRT



More information about the hotspot-runtime-dev mailing list