[foreign-memaccess+abi] RFR: 8262118: Specialize upcalls [v2]
Jorn Vernee
jvernee at openjdk.java.net
Tue Feb 23 15:54:16 UTC 2021
On Tue, 23 Feb 2021 14:21:51 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> Executed benchmark on my machine:
>>
>> Benchmark Mode Cnt Score Error Units
>> Upcalls.jni_args10 avgt 30 102.245 ? 1.952 ns/op
>> Upcalls.jni_args5 avgt 30 59.715 ? 1.488 ns/op
>> Upcalls.jni_blank avgt 30 43.189 ? 0.642 ns/op
>> Upcalls.jni_identity avgt 30 90.224 ? 1.775 ns/op
>> Upcalls.panama_args10 avgt 30 24.633 ? 0.260 ns/op
>> Upcalls.panama_args5 avgt 30 18.708 ? 0.314 ns/op
>> Upcalls.panama_blank avgt 30 15.925 ? 0.262 ns/op
>> Upcalls.panama_identity avgt 30 19.769 ? 0.266 ns/op
>> Seems to be from 2x to 4x faster - awesome!
>
> Thanks for testing. I forgot that precompiled headers can be an issue, and was testing on multiple Linux machines, one of which doesn't test with PCH disabled. Will give it another try here as well.
I've address review comments.
I've update the AArch64 CallArranger as well as the test to use float as a carrier type when also using vector registers, to avoid the same mismatch.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/457
More information about the panama-dev
mailing list