Inline and methods with annotations

Tom Rodriguez tom.rodriguez at oracle.com
Fri Feb 17 12:32:41 PST 2012


On Feb 17, 2012, at 8:47 AM, Ion Ionascu wrote:

> Hi,
> 
> 
> I noticed in a previous email that somebody mentioned that it might be a good idea not to use annotations on method variables as they influence the length of the method, which influences the decision whether to inline the method or not.
> 
> So, I have the following curiosity: do method-level annotations also affect the "inline"-ability of a method?

They shouldn't.  They only reference values from the constant pool so they shouldn't effect the actual bytecodes generated, which is the only thing the JIT really cares about.

tom

> 
> 
> Thank you,
> Ion Ionascu
> 
> www.ionionascu.eu



More information about the hotspot-dev mailing list