RFR: 8172733: [JVMCI] add ResolvedJavaMethod.hasNeverInlineDirective

Doug Simon doug.simon at oracle.com
Sun Jan 22 20:39:54 UTC 2017


The ResolvedJavaMethod.canBeInlined method captures 2 different constraints on inlining: 

1. Whether the method has an explicit directive (e.g., -XX:CompileCommand=dontinline) or a hotspot recognized annotation (e.g., @DontInline). 
2. Whether hotspot has marked it not compilable for policy reasons (e.g., failed earlier compilations or has a bytecode breakpoint). 

Truffle partial evaluation (a JVMCI API client) doesn’t care about 2 and must ignore it for correct operation. However, it needs to know about 1. This webrev introduces a separate ResolvedJavaMethod.hasNeverInlineDirective method to support this feature.

https://bugs.openjdk.java.net/browse/JDK-8172733
http://cr.openjdk.java.net/~dnsimon/8172733/webrev/

-Doug


More information about the hotspot-compiler-dev mailing list