RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v16]

Jorn Vernee jvernee at openjdk.org
Wed Nov 13 17:50:19 UTC 2024


On Wed, 13 Nov 2024 15:21:24 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR prevents sequence layout with padding to be used with the Linker.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix failing test

src/java.base/share/classes/jdk/internal/foreign/abi/AbstractLinker.java line 267:

> 265:         return gl != null
> 266:                 ? " in " + gl
> 267:                 : "";

Looks like this can be simpler now as well, since `gl` can never be `null` I think.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21041#discussion_r1840916603


More information about the core-libs-dev mailing list