[foreign-memaccess+abi] Integrated: 8299181: PaddingLayout unable to return byteAlignment value
Per Minborg
pminborg at openjdk.org
Tue Jan 17 11:54:42 UTC 2023
On Wed, 11 Jan 2023 10:25:47 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> This PR proposes bit-aligning `PaddingLayout` to 8 by default as opposed to the current value of 1.
>
> More generally, the PR restricts `PaddingLayout` bit-alignment to non-negative values that are an even multiple of 8 (i.e. 0, 8, 16, ...). There are no mechanism to derive `VarHandle` objects for sub-byte access anyhow and trying to obtain a miss-aligned `VarHandle` would throw an exception.
>
> If integrated, all `MemoryLayout` types would be byte-aligned.
This pull request has now been integrated.
Changeset: 477cc26f
Author: Per Minborg <pminborg at openjdk.org>
URL: https://git.openjdk.org/panama-foreign/commit/477cc26fe153b406c5b7477dec08a6ecb3d93a0f
Stats: 166 lines in 9 files changed: 44 ins; 77 del; 45 mod
8299181: PaddingLayout unable to return byteAlignment value
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/panama-foreign/pull/766
More information about the panama-dev
mailing list