Preview API
Show preview API for:
Contents
-
InterfacePreview FeatureDescriptionForeign Function & Memory APIAn arena controls the lifecycle of memory segments, providing both flexible allocation and timely deallocation.Foreign Function & Memory APIA function descriptor models the signature of foreign functions.Foreign Function & Memory APIA compound layout that aggregates multiple member layouts.Foreign Function & Memory APIA linker provides access to foreign functions from Java code, and access to Java code from foreign functions.Foreign Function & Memory APIA linker option is used to indicate additional linking requirements to the linker, besides what is described by a function descriptor.Foreign Function & Memory APIA linker option for saving portions of the execution state immediately after calling a foreign function associated with a downcall method handle, before it can be overwritten by the runtime, or read through conventional means.Foreign Function & Memory APIA memory layout describes the contents of a memory segment.Foreign Function & Memory APIAn element in a layout path.Foreign Function & Memory APIA memory segment provides access to a contiguous region of memory.Foreign Function & Memory APIA padding layout.Foreign Function & Memory APIAn object that may be used to allocate memory segmentsPREVIEW.Foreign Function & Memory APIA segment scope controls access to memory segments.Foreign Function & Memory APIA compound layout that denotes a repetition of a given element layout.Foreign Function & Memory APIA group layout whose member layouts are laid out one after the other.Foreign Function & Memory APIA symbol lookup retrieves the address of a symbol in one or more libraries.Foreign Function & Memory APIA group layout whose member layouts are laid out at the same starting offset.Foreign Function & Memory APIHelper class to create and manipulate variable argument lists, similar in functionality to a C
va_list
.Foreign Function & Memory APIA builder used to construct a variable argument listPREVIEW.Foreign Function & Memory APIA layout that models values of basic data types.Foreign Function & Memory APIA value layout whose carrier isMemorySegment.class
.Foreign Function & Memory APIA value layout whose carrier isboolean.class
.Foreign Function & Memory APIA value layout whose carrier isbyte.class
.Foreign Function & Memory APIA value layout whose carrier ischar.class
.Foreign Function & Memory APIA value layout whose carrier isdouble.class
.Foreign Function & Memory APIA value layout whose carrier isfloat.class
.Foreign Function & Memory APIA value layout whose carrier isint.class
.Foreign Function & Memory APIA value layout whose carrier islong.class
.Foreign Function & Memory APIA value layout whose carrier isshort.class
.Virtual ThreadsA builder forThread
andThreadFactory
objects.Virtual ThreadsA builder for creating a platformThread
orThreadFactory
that creates platform threads.Virtual ThreadsA builder for creating a virtualThread
orThreadFactory
that creates virtual threads.
-
ClassPreview FeatureDescriptionPattern Matching for switchBootstrap methods for linking
invokedynamic
call sites that implement the selection functionality of theswitch
statement.
-
Exception ClassPreview FeatureDescriptionPattern Matching for switchThrown to indicate an unexpected failure in pattern matching.
-
MethodPreview FeatureDescriptionForeign Function & Memory APIAdapts a target var handle by pre-processing a sub-sequence of its coordinate values with a filter (a method handle).Foreign Function & Memory APIReturns a var handle which will discard some dummy coordinates before delegating to the target var handle.Foreign Function & Memory APIAdapts a target var handle by pre-processing incoming coordinate values using unary filter functions.Foreign Function & Memory APIAdapts a target var handle by pre-processing incoming and outgoing values using a pair of filter functions.Foreign Function & Memory APIProvides a target var handle with one or more bound coordinates in advance of the var handle's invocation.Foreign Function & Memory APICreates a var handle object, which can be used to dereference a memory segmentPREVIEW by viewing its contents as a sequence of the provided value layout.Foreign Function & Memory APIProvides a var handle which adapts the coordinate values of the target var handle, by re-arranging them so that the new coordinates match the provided ones.Foreign Function & Memory APIReturns
true
if this module can access restricted methods.Foreign Function & Memory APIEnables native access for a module in the layer if the caller's module has native access.Virtual ThreadsReturnstrue
if this thread is a virtual thread.Virtual ThreadsReturns a builder for creating a platformThread
orThreadFactory
that creates platform threads.Virtual ThreadsReturns a builder for creating a virtualThread
orThreadFactory
that creates virtual threads.Virtual ThreadsCreates a virtual thread to execute a task and schedules it to execute.Foreign Function & Memory APIMaps a region of this channel's file into a new mapped memory segment, with the given offset, size and memory session.Virtual ThreadsCreates an Executor that starts a new Thread for each task.Virtual ThreadsCreates an Executor that starts a new virtual Thread for each task.