[foreign-memaccess+abi] RFR: 8292174: Add unaligned layouts to ValueLayout
Maurizio Cimadamore
mcimadamore at openjdk.org
Wed Aug 10 13:46:57 UTC 2022
On Wed, 10 Aug 2022 13:03:45 GMT, Per Minborg <duke at openjdk.org> wrote:
> The layouts are placed in a special `Unaligned` class. This prevents the classes to be seen on the top level (for less cluttering) and allows lazy initialization of items that are likely not so much used.
I suggest you make a search for _UNALIGNED in the API implementation and test/benchmarks. There some places where we used hand-written unaligned layouts - e.g. BindingSpecializer and test/micro/org/openjdk/bench/java/lang/foreign/JavaLayouts.java to name a few.
-------------
PR: https://git.openjdk.org/panama-foreign/pull/705
More information about the panama-dev
mailing list