RFR: 8310053: VarHandle and slice handle derived from layout are lacking alignment check [v5]
Maurizio Cimadamore
mcimadamore at openjdk.org
Thu Jun 15 13:14:01 UTC 2023
On Thu, 15 Jun 2023 13:08:45 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> Add missing alignment checks for the alignment constraint of the root layout of a VarHandle created through `MemoryLayout::varHandle` and a MethodHandle `MemoryLayout::sliceHandle`.
>>
>> Testing: `jdk_foreign` test suite
>
> Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
>
> only check alignment of root for the first deref in a chain
> minor javadoc fix
> add test for misaligned deref
Marked as reviewed by mcimadamore (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/14475#pullrequestreview-1481537466
More information about the core-libs-dev
mailing list