RFR: 8160821: VarHandle accesses are penalized when argument conversion is required [v4]
Chen Liang
liach at openjdk.org
Wed Dec 3 04:13:59 UTC 2025
On Wed, 3 Dec 2025 01:53:13 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
>> Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits since the last revision:
>>
>> - Rollback getAndAdd for now
>> - Redundant change
>> - Merge branch 'master' of https://github.com/openjdk/jdk into fix/vh-adapt-cache
>> - Stage
>> - Review tweaks
>> - Tweak VH usage in some classes
>> - Logical fallacy
>> - 8160821
>
> test/micro/org/openjdk/bench/java/lang/invoke/VarHandleExact.java line 81:
>
>> 79:
>> 80: @Benchmark
>> 81: public void generic_returnDroppingInvocation() {
>
> What about "all-generic" case (` { generic.getAndAdd(data, 42); }`)?
I can change the `generic_genericInvocation` to an all-generic case.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28585#discussion_r2583556794
More information about the hotspot-dev
mailing list