Integrated: 8307181: MemoryLayout.structLayout uses undocumented strict alignment constraints
Maurizio Cimadamore
mcimadamore at openjdk.org
Thu May 4 09:47:26 UTC 2023
On Wed, 3 May 2023 08:31:34 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch adds documentation for the behavior of the `MemoryLayout::structLayout` factory.
>
> This factory throws an `IllegalArgumentException` if one of the member layouts passed to it occurs at an offset within the struct that is not aligned.
>
> As part of this patch, I've also added some api notes on how to use this factory when unaligned elements are present.
This pull request has now been integrated.
Changeset: cecf817f
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/cecf817f5ed8e6ca290f8da0f07f694f35ec4c7e
Stats: 22 lines in 1 file changed: 22 ins; 0 del; 0 mod
8307181: MemoryLayout.structLayout uses undocumented strict alignment constraints
Reviewed-by: jvernee
-------------
PR: https://git.openjdk.org/jdk/pull/13770
More information about the core-libs-dev
mailing list