| Modifier and Type | Field and Description |
|---|---|
| public static final AddressLayout | |
| public static final Arena | |
| private static final JavaLangInvokeAccess | |
| private static final BufferStack | |
| private static final int | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| public static final MethodHandle | |
| private static final MethodHandle | |
| public static final SegmentAllocator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MethodHandle | Returns: the adapted handlethe target handle to adapt handle, FunctionDescriptor the function descriptor of the native function (with actual return layout) cDesc, CallingSequence sequence)Takes a MethodHandle that takes an input buffer as a first argument (a MemorySegment), and returns nothing, and adapts it to return a MemorySegment, by allocating a MemorySegment for the input buffer, calling the target MethodHandle, and then returning the allocated MemorySegment. |
| private static MethodHandle | Returns: the adapted handlethe target handle to adapt target, boolean dropReturn)Takes a MethodHandle that returns a MemorySegment, and adapts it to take an input buffer as a first argument (a MemorySegment), and upon invocation, copies the contents of the returned MemorySegment into the input buffer passed as the first argument. |
| public static long | |
| public static AbstractLinker. | arrangeUpcallHelper(MethodType targetType, boolean isInMemoryReturn, boolean dropReturn, ABIDescriptor abi, CallingSequence callingSequence)
|
| private static MemorySegment | |
| public static Map | |
| public static MemorySegment | |
| public static void | |
| public static void | |
| public static void | |
| pack-priv static void | |
| public static Linker | |
| public static void | |
| pack-priv static Map | |
| public static boolean | |
| public static MethodHandle | |
| public static MethodHandle | |
| pack-priv static MethodHandle | |
| public static Arena | |
| public static Arena | |
| pack-priv static long | |
| public static Class | |
| public static ValueLayout | |
| private static MethodHandle | |
| pack-priv static Object | |
| public static long | |
| public static MethodHandle | |
| public static long | |
| public static int | |
| pack-priv static void | |
| pack-priv static void |
| C_POINTER | back to summary |
|---|---|
public static final AddressLayout C_POINTER
| |
| DUMMY_ARENA | back to summary |
|---|---|
| public static final Arena DUMMY_ARENA | |
| JLIA | back to summary |
|---|---|
| private static final JavaLangInvokeAccess JLIA | |
| LINKER_STACK | back to summary |
|---|---|
| private static final BufferStack LINKER_STACK | |
| LINKER_STACK_SIZE | back to summary |
|---|---|
| private static final int LINKER_STACK_SIZE | |
| MH_ALLOC_BUFFER | back to summary |
|---|---|
| private static final MethodHandle MH_ALLOC_BUFFER | |
| MH_BUFFER_COPY | back to summary |
|---|---|
| private static final MethodHandle MH_BUFFER_COPY | |
| MH_CHECK_CAPTURE_SEGMENT | back to summary |
|---|---|
| private static final MethodHandle MH_CHECK_CAPTURE_SEGMENT | |
| MH_CHECK_SYMBOL | back to summary |
|---|---|
| public static final MethodHandle MH_CHECK_SYMBOL | |
| MH_REACHABILITY_FENCE | back to summary |
|---|---|
| private static final MethodHandle MH_REACHABILITY_FENCE | |
| THROWING_ALLOCATOR | back to summary |
|---|---|
| public static final SegmentAllocator THROWING_ALLOCATOR | |
| SharedUtils | back to summary |
|---|---|
| private SharedUtils() | |
| adaptDowncallForIMR | back to summary |
|---|---|
| public static MethodHandle adaptDowncallForIMR(MethodHandle handle, FunctionDescriptor cDesc, CallingSequence sequence) Takes a MethodHandle that takes an input buffer as a first argument (a MemorySegment), and returns nothing, and adapts it to return a MemorySegment, by allocating a MemorySegment for the input buffer, calling the target MethodHandle, and then returning the allocated MemorySegment. This allows viewing a MethodHandle that makes use of in memory return (IMR) as a MethodHandle that just returns a MemorySegment without requiring a pre-allocated buffer as an explicit input.
| |
| adaptUpcallForIMR | back to summary |
|---|---|
| private static MethodHandle adaptUpcallForIMR(MethodHandle target, boolean dropReturn) Takes a MethodHandle that returns a MemorySegment, and adapts it to take an input buffer as a first argument (a MemorySegment), and upon invocation, copies the contents of the returned MemorySegment into the input buffer passed as the first argument.
| |
| alignUp | back to summary |
|---|---|
| public static long alignUp(long addr, long alignment) | |
| arrangeUpcallHelper | back to summary |
|---|---|
| public static AbstractLinker. | |
| bufferCopy | back to summary |
|---|---|
| private static MemorySegment bufferCopy(MemorySegment dest, MemorySegment buffer) | |
| canonicalLayouts | back to summary |
|---|---|
| public static Map | |
| checkCaptureSegment | back to summary |
|---|---|
public static MemorySegment checkCaptureSegment(MemorySegment captureSegment)
| |
| checkExceptions | back to summary |
|---|---|
| public static void checkExceptions(MethodHandle target) | |
| checkNative | back to summary |
|---|---|
| public static void checkNative(MemorySegment segment) | |
| checkSymbol | back to summary |
|---|---|
public static void checkSymbol(MemorySegment symbol)
| |
| checkType | back to summary |
|---|---|
| pack-priv static void checkType(Class<?> actualType, Class<?> expectedType) | |
| getSystemLinker | back to summary |
|---|---|
| public static Linker getSystemLinker() | |
| handleUncaughtException | back to summary |
|---|---|
| public static void handleUncaughtException(Throwable t) | |
| indexMap | back to summary |
|---|---|
| pack-priv static Map | |
| isPowerOfTwo | back to summary |
|---|---|
| public static boolean isPowerOfTwo(int width) | |
| maybeCheckCaptureSegment | back to summary |
|---|---|
| public static MethodHandle maybeCheckCaptureSegment(MethodHandle handle, LinkerOptions options) | |
| maybeInsertAllocator | back to summary |
|---|---|
| public static MethodHandle maybeInsertAllocator(FunctionDescriptor descriptor, MethodHandle handle) | |
| mergeArguments | back to summary |
|---|---|
| pack-priv static MethodHandle mergeArguments(MethodHandle mh, int sourceIndex, int destIndex) | |
| newBoundedArena | back to summary |
|---|---|
public static Arena newBoundedArena(long size)
| |
| newEmptyArena | back to summary |
|---|---|
| public static Arena newEmptyArena() | |
| pickChunkOffset | back to summary |
|---|---|
| pack-priv static long pickChunkOffset(long chunkOffset, long byteWidth, int chunkWidth) | |
| primitiveCarrierForSize | back to summary |
|---|---|
| public static Class | |
| primitiveLayoutForSize | back to summary |
|---|---|
| public static ValueLayout primitiveLayoutForSize(long size, boolean useFloat) | |
| reachabilityFenceHandle | back to summary |
|---|---|
| private static MethodHandle reachabilityFenceHandle(Class<?> type) | |
| read | back to summary |
|---|---|
| pack-priv static Object read(MemorySegment ptr, long offset, Class<?> type) | |
| remainsToAlignment | back to summary |
|---|---|
| public static long remainsToAlignment(long addr, long alignment) | |
| swapArguments | back to summary |
|---|---|
| public static MethodHandle swapArguments(MethodHandle mh, int firstArg, int secondArg) | |
| unboxSegment | back to summary |
|---|---|
public static long unboxSegment(MemorySegment segment)
| |
| unboxSegment32 | back to summary |
|---|---|
public static int unboxSegment32(MemorySegment segment)
| |
| write | back to summary |
|---|---|
| pack-priv static void write(MemorySegment ptr, long offset, Class<?> type, Object o) | |
| writeOverSized | back to summary |
|---|---|
| pack-priv static void writeOverSized(MemorySegment ptr, Class<?> type, Object o) | |