[Rev 01] RFR: 8238226: Revisit FunctionDescriptor

Jorn Vernee jvernee at openjdk.java.net
Tue Feb 11 16:40:31 UTC 2020


On Tue, 11 Feb 2020 14:34:08 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> The pull request has been updated with 1 additional commit.
> 
> test/jdk/java/foreign/StdLibTest.java line 356:
> 
>> 355:             MethodHandle mh = abi.downcallHandle(printfAddr, mt,
>> 356:                     FunctionDescriptor.of(C_INT, argLayouts.toArray(new MemoryLayout[0])));
>> 357:             return mh.asSpreader(1, Object[].class, args.size());
> 
> It feels like we should be able to simplify this routine with the new FunctionDescriptor::append ?

Good catch! - updated

-------------

PR: https://git.openjdk.java.net/panama-foreign/pull/15


More information about the panama-dev mailing list