Re: RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddindLayout

2024-09-20 Thread Maurizio Cimadamore
On Fri, 20 Sep 2024 10:32:18 GMT, Jorn Vernee wrote: > > The javadoc of the `Linker` also states that: > > > [A group layout] G does not contain padding other than what is strictly > > > required to align > > > its non-padding layout elements, or to satisfy (2) [the size of {@code G} > > > is a

Re: RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddindLayout

2024-09-20 Thread Jorn Vernee
On Fri, 20 Sep 2024 08:41:45 GMT, Maurizio Cimadamore wrote: > The javadoc of the `Linker` also states that: > > > [A group layout] G does not contain padding other than what is strictly > > required to align > > its non-padding layout elements, or to satisfy (2) [the size of {@code G} > > is

Re: RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddindLayout

2024-09-20 Thread Jorn Vernee
On Tue, 17 Sep 2024 14:12:58 GMT, Per Minborg wrote: > This PR prevents sequence layout with padding to be used with the Linker. src/java.base/share/classes/java/lang/foreign/Linker.java line 252: > 250: * the alignment constraint of {@code S} is set to its > 251: * natural alignment, >

Re: RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddindLayout

2024-09-20 Thread Maurizio Cimadamore
On Tue, 17 Sep 2024 14:12:58 GMT, Per Minborg wrote: > This PR prevents sequence layout with padding to be used with the Linker. The javadoc of the `Linker` also states that: > [A group layout] G does not contain padding other than what is strictly > required to align its non-padding layo