[foreign-memaccess] Simplifying memory access var handles
Paul Sandoz
paul.sandoz at oracle.com
Tue Jun 23 22:40:40 UTC 2020
> On Jun 23, 2020, at 10:58 AM, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> wrote:
>
> Here's a branch with an initial stab:
>
> https://github.com/mcimadamore/panama-foreign/tree/simpler-memory-VH
>
> Lot less code,
A very encouraging sign.
> all benchamarks run as expected.
>
> I had to add a minor tweak to retain the existing shortcircuiting of the alignment check of the "offset" portion of a memory access in case the VH has been constructed using a layout (in which case alignment checks on offsets are enforced eagerly, on layout construction/VH derivation).
>
Yeah, it looks a little odd, but its never exposed publicly..
Paul.
> Other than that pretty trivial.
>
> Maurizio
More information about the panama-dev
mailing list