[foreign-memaccess+abi] RFR: Check for mixed access - remove mem barriers
Radoslaw Smogura
github.com+7535718+rsmogura at openjdk.java.net
Wed Jul 28 17:03:51 UTC 2021
On Sat, 24 Jul 2021 16:07:09 GMT, Radoslaw Smogura <github.com+7535718+rsmogura at openjdk.org> wrote:
> That's for previous PR, which I destroyed with bad merge from master.
>
> I wonder if this can look like this?
>
>
> Benchmark (size) Mode Cnt Score Error Units
> ByteBufferVectorAccess.directBuffers 1024 avgt 10 27.119 ? 0.186 ns/op
> ByteBufferVectorAccess.heapBuffers 1024 avgt 10 28.501 ? 0.118 ns/op
> ByteBufferVectorAccess.pollutedBuffers 1024 avgt 10 64.354 ? 27.778 ns/op
> Finished running test 'micro:ByteBufferVectorAccess'
>
>
> https://github.com/openjdk/panama-foreign/pull/566
I checked and BB view handle can create mem bars in polluted case, otherwise do not - https://gist.github.com/rsmogura/3629592b5ab90135f27e76f837693647
I wonder if using VH to access HB can help with performance
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/573
More information about the panama-dev
mailing list