[foreign-memaccess+abi] RFR: 8299181: PaddingLayout unable to return byteAlignment value [v3]
Per Minborg
pminborg at openjdk.org
Tue Jan 17 08:25:05 UTC 2023
> 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
-------------
Changes:
- all: https://git.openjdk.org/panama-foreign/pull/766/files
- new: https://git.openjdk.org/panama-foreign/pull/766/files/e3f7fcc4..ab8af25d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=panama-foreign&pr=766&range=02
- incr: https://webrevs.openjdk.org/?repo=panama-foreign&pr=766&range=01-02
Stats: 6 lines in 1 file changed: 1 ins; 1 del; 4 mod
Patch: https://git.openjdk.org/panama-foreign/pull/766.diff
Fetch: git fetch https://git.openjdk.org/panama-foreign pull/766/head:pull/766
PR: https://git.openjdk.org/panama-foreign/pull/766
More information about the panama-dev
mailing list