On Fri, 3 Nov 2023 16:35:18 GMT, Jorn Vernee <jver...@openjdk.org> wrote:
>> - Add linker note about packed structs. >> - Relax language a bit to avoid implying that only listed layouts are >> supported. > > Jorn Vernee has updated the pull request incrementally with one additional > commit since the last revision: > > add examples of packed structs src/java.base/share/classes/java/lang/foreign/Linker.java line 249: > 247: * Linker implementations may optionally support additional layouts, > such as <em>packed</em> struct layouts. > 248: * A packed struct is a struct in which there is at least one member > layout {@code L} that has an alignment > 249: * constraint less than its natural alignment. This allows avoiding > padding between member layouts, Suggestion: * constraint less strict than its natural alignment. This allows avoiding padding between member layouts, ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/16485#discussion_r1382060828