[foreign-memaccess+abi] RFR: 8273905: Foreign API refresh [v4]
Uwe Schindler
uschindler at openjdk.java.net
Sat Sep 18 21:18:32 UTC 2021
On Sat, 18 Sep 2021 17:20:11 GMT, Uwe Schindler <uschindler at openjdk.org> wrote:
>> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Cleanup up code, following some IDEA suggestions.
>> * unused imports
>> * suggestions for new language features
>> * drop unused impl declarations
>> * removed size constructor parameter in value layout subclasses (except `OfAddress`)
>
> src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemoryHandles.java line 183:
>
>> 181: * <blockquote><pre>{@code
>> 182: MemorySegment segment = MemorySegment.allocateNative(2, ResourceScope.newConfinedScope());
>> 183: VarHandle SHORT_VH = ValueLayout.JAVA_SHORT.varHandle(short.class);
>
> The parameter `short.class` in this example is obsolete with new API.
There may be other similar problems at other places!
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/576
More information about the panama-dev
mailing list