[foreign-memaccess] RFR: 8257075: MemoryAcccess methods are missing @ForceInline annotations
Jorn Vernee
jvernee at openjdk.java.net
Wed Nov 25 13:33:04 UTC 2020
On Wed, 25 Nov 2020 12:39:11 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch adds missing `@ForceInline` annotations to the various accessors in the `MemoryAccess` class. The lack of said annotations causes performance to deteriorate when many calls to the static accessors are packed into a single hot method.
> I've also added a new benchmark to verify that unrolled loops using memory access API (whether usingVH directly, or statics in `MemoryAccess`) are on par with unsafe access. This benchmark is heavily borrowed from a benchmark submitted
> by Antoine Chambille (thanks!):
>
> https://mail.openjdk.java.net/pipermail/panama-dev/2020-November/011444.html
Marked as reviewed by jvernee (Committer).
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/401
More information about the panama-dev
mailing list