8319560: Reformat method parameters in the FFM API

Reviewed-by: mcimadamore
This commit is contained in:
Per Minborg 2023-11-07 15:05:03 +00:00
parent ef8c8408a6
commit 134c382d39
4 changed files with 26 additions and 12 deletions

View file

@ -550,7 +550,9 @@ public sealed interface Linker permits AbstractLinker {
*/
@CallerSensitive
@Restricted
MethodHandle downcallHandle(MemorySegment address, FunctionDescriptor function, Option... options);
MethodHandle downcallHandle(MemorySegment address,
FunctionDescriptor function,
Option... options);
/**
* Creates a method handle that is used to call a foreign function with the given signature.
@ -637,7 +639,10 @@ public sealed interface Linker permits AbstractLinker {
*/
@CallerSensitive
@Restricted
MemorySegment upcallStub(MethodHandle target, FunctionDescriptor function, Arena arena, Linker.Option... options);
MemorySegment upcallStub(MethodHandle target,
FunctionDescriptor function,
Arena arena,
Linker.Option... options);
/**
* Returns a symbol lookup for symbols in a set of commonly used libraries.