On Thu, 14 Oct 2021 19:36:02 GMT, Mandy Chung <mch...@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

Reply via email to