RFR: 8161379: Force inline methods calling Reflection.getCallerClass

Aleksey Shipilev aleksey.shipilev at gmail.com
Fri Aug 5 20:29:01 UTC 2016


On 08/05/2016 11:22 PM, Claes Redestad wrote:
> On 08/05/2016 12:56 PM, Aleksey Shipilev wrote:
>> I wouldn't mind to have a comment at @ForceInline line mentioning this
>> is for Reflection.getCallerClass() optimization. But, it might be
>> recoverable from the source control anyway.
> 
> Sure, how about:
> 
> @ForceInline // to ensure Reflection.getCallerClass optimization
> 
> http://cr.openjdk.java.net/~redestad/8161379/jdk.02/

+1

-Aleksey




More information about the core-libs-dev mailing list