8288068: Javadoc contains spurious reference to CLinker

Reviewed-by: iris
This commit is contained in:
Maurizio Cimadamore 2022-06-08 23:58:28 +00:00
parent 130ce7c6b8
commit 65f0829d64
2 changed files with 5 additions and 5 deletions

View file

@ -186,7 +186,7 @@
* FunctionDescriptor intCompareDescriptor = FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS);
* MethodHandle intCompareHandle = MethodHandles.lookup().findStatic(IntComparator.class,
* "intCompare",
* CLinker.upcallType(comparFunction));
* Linker.upcallType(comparFunction));
* }
*
* As before, we need to create a {@link java.lang.foreign.FunctionDescriptor} instance, this time describing the signature
@ -199,7 +199,7 @@
*
* {@snippet lang=java :
* MemorySession session = ...
* Addressable comparFunc = CLinker.nativeLinker().upcallStub(
* Addressable comparFunc = Linker.nativeLinker().upcallStub(
* intCompareHandle, intCompareDescriptor, session);
* );
* }