[foreign-memaccess+abi] RFR: 8292174: Add unaligned layouts to ValueLayout [v4]
Per Minborg
duke at openjdk.org
Fri Aug 12 13:55:34 UTC 2022
On Fri, 12 Aug 2022 13:51:57 GMT, Per Minborg <duke at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/foreign/ValueLayout.java line 652:
>>
>>> 650: }
>>> 651:
>>> 652: // Some constants below are accessed from generated bytecode, see BindingSpecializer::emitLoadLayoutConstant
>>
>> Which constants "below" ? The comment would have been perfect in the old code, but now it seems the constants have been removed?
>
> The constants JAVA_BYTE. JAVA_BOOLEAN and JAVA_*_UNALIGNED are used.
So, before they were all in a special class (Platform) but now the public layouts are used.
-------------
PR: https://git.openjdk.org/panama-foreign/pull/705
More information about the panama-dev
mailing list