RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v13]
Jorn Vernee
jvernee at openjdk.org
Wed Nov 6 15:27:32 UTC 2024
On Wed, 6 Nov 2024 15:04:24 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> P.S. AFAICT, there are only 3 new checks we need to implement, the other rules should already be handled by the existing code:
>
> * No consecutive padding layouts in structs.
>
> * Not more than 1 padding layout in unions (to align the union itself).
>
> * No non-empty struct/union that contains _only_ a padding layout.
Maybe we should also check that padding layouts have natural alignment? The alignment of padding layouts can affect the alignment of the enclosing container.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21041#issuecomment-2460061254
More information about the core-libs-dev
mailing list