RFR(S): 8161379: @CallerSensitive methods should be forcefully inlined to get Reflection.getCallerClass optimization

Paul Sandoz paul.sandoz at oracle.com
Tue Jul 19 09:16:45 UTC 2016


> On 19 Jul 2016, at 01:59, Christian Thalinger <cthalinger at twitter.com> wrote:
>  The right way to do this is to add the @ForceInline annotation in the source code.
> 

That would be my preference.

According to my IDE it reports 131 usages of @CallerSensitive in java.base. Do we really want all such methods to be implicitly @ForcedInlined or only a select few?

Paul.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160719/8cf2ba62/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160719/8cf2ba62/signature.asc>


More information about the hotspot-compiler-dev mailing list