RFR: 8310053: VarHandle and slice handle derived from layout are lacking alignment check [v4]

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Jun 14 23:52:56 UTC 2023


On Wed, 14 Jun 2023 23:38:01 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:
> 
>   Drop alignment checks from accessed elements
>   Use expectThrows

Bonus points!

-------------

Marked as reviewed by mcimadamore (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14475#pullrequestreview-1480461139


More information about the core-libs-dev mailing list