RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v5]
Maurizio Cimadamore
mcimadamore at openjdk.org
Mon Sep 23 16:42:42 UTC 2024
On Mon, 23 Sep 2024 16:35:18 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:
>
> Reword doce
src/java.base/share/classes/jdk/internal/foreign/abi/AbstractLinker.java line 225:
> 223: // check elements are not all padding layouts and for trailing padding
> 224: private void checkGroup(GroupLayout gl, long maxUnpaddedOffset) {
> 225: if (!gl.memberLayouts().isEmpty() && gl.memberLayouts().stream().allMatch(e -> e instanceof PaddingLayout)) {
You have fixed the javadoc - but the check for `memberLayouts().isEmpty()` is still here?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21041#discussion_r1771774880
More information about the core-libs-dev
mailing list