RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v5]
Maurizio Cimadamore
mcimadamore at openjdk.org
Mon Sep 30 16:06:36 UTC 2024
On Mon, 30 Sep 2024 14:34:49 GMT, Vladimir Kozelkov <duke at openjdk.org> wrote:
> > I don't think anything else is needed here.
>
> Besides the fact that it shouldn't run, but it does (all 4 examples run without any exception!)
I meant - no other layout is needed - as we don't have any "alignment gap" here - the union size is already a multiple of its alignment. So, this seems another case where there's "redundant" padding that is not detected.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21041#issuecomment-2383605851
More information about the core-libs-dev
mailing list