RFR: 8319316: Clarify text around which layouts a linker supports [v2]
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Nov 3 18:16:20 UTC 2023
On Fri, 3 Nov 2023 16:35:18 GMT, Jorn Vernee <jvernee at 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
More information about the core-libs-dev
mailing list