RFR: 8271820: Implementation of JEP 416: Reimplement Core Reflection with Method Handle [v13]

Claes Redestad redestad at openjdk.java.net
Thu Oct 14 19:48:52 UTC 2021


On Thu, 14 Oct 2021 19:36:02 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> Mandy Chung has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Minor cleanup.  Improve javadoc in CallerSensitiveAdapter
>
> The static Const/Poly/Var is doing better than the instance Const/Poly/Var in the old implementation, which might imply that Unsafe might be slightly faster for static field access than instance field access (I have to dig further.).
> 
> For the new implementation using MH, the cost of static field access and instance field access looks like similar.

Not sure which results show instance beating static? In both my runs and @mlchung's numbers above static appears slightly faster than instance (note that lower is better here). This seems reasonable since static does not carry a receiver, and a similar relative skew is there in the baseline as well.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5027


More information about the core-libs-dev mailing list