On Wed, 6 Nov 2024 15:04:24 GMT, Jorn Vernee <jver...@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

Reply via email to