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

Jorn Vernee jvernee at openjdk.org
Wed Jun 14 22:03:01 UTC 2023


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

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

Commit messages:
 - Add root layout alignment check to varHandle and sliceHandle

Changes: https://git.openjdk.org/jdk/pull/14475/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14475&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8310053
  Stats: 71 lines in 3 files changed: 55 ins; 7 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/14475.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14475/head:pull/14475

PR: https://git.openjdk.org/jdk/pull/14475


More information about the core-libs-dev mailing list