[foreign-memaccess+abi] RFR: 8299181: PaddingLayout unable to return byteAlignment value [v3]
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Jan 17 10:24:42 UTC 2023
On Tue, 17 Jan 2023 08:25:05 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.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>
> Cleanup
Marked as reviewed by mcimadamore (Committer).
-------------
PR: https://git.openjdk.org/panama-foreign/pull/766
More information about the panama-dev
mailing list