Uses of Interface
java.lang.foreign.MemorySession
Packages that use MemorySessionPREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
-
Uses of MemorySessionPREVIEW in java.lang.foreign
Methods in java.lang.foreign that return MemorySessionPREVIEWModifier and TypeMethodDescriptionMemorySession.asNonCloseable()
Returns a non-closeable view of this memory session.static MemorySessionPREVIEW
MemorySession.global()
Returns the global memory session.static MemorySessionPREVIEW
MemorySession.openConfined()
Creates a closeable confined memory session.static MemorySessionPREVIEW
MemorySession.openConfined
(Cleaner cleaner) Creates a closeable confined memory session, managed by the provided cleaner instance.static MemorySessionPREVIEW
MemorySession.openImplicit()
Creates a non-closeable shared memory session, managed by a privateCleaner
instance.static MemorySessionPREVIEW
MemorySession.openShared()
Creates a closeable shared memory session.static MemorySessionPREVIEW
MemorySession.openShared
(Cleaner cleaner) Creates a closeable shared memory session, managed by the provided cleaner instance.MemorySegment.session()
Returns the memory session associated with this memory segment.VaList.session()
Returns the memory session associated with this variable argument list.Methods in java.lang.foreign with parameters of type MemorySessionPREVIEWModifier and TypeMethodDescriptionstatic MemorySegmentPREVIEW
MemorySegment.allocateNative
(long bytesSize, long alignmentBytes, MemorySessionPREVIEW session) Creates a native memory segment with the given size (in bytes), alignment constraint (in bytes) and memory session.static MemorySegmentPREVIEW
MemorySegment.allocateNative
(long bytesSize, MemorySessionPREVIEW session) Creates a native memory segment with the given size (in bytes) and memory session.static MemorySegmentPREVIEW
MemorySegment.allocateNative
(MemoryLayoutPREVIEW layout, MemorySessionPREVIEW session) Creates a native memory segment with the given layout and memory session.static SymbolLookupPREVIEW
SymbolLookup.libraryLookup
(String name, MemorySessionPREVIEW session) Loads a library with the given name (if not already loaded) and creates a symbol lookup for symbols in that library.static SymbolLookupPREVIEW
SymbolLookup.libraryLookup
(Path path, MemorySessionPREVIEW session) Loads a library from the given path (if not already loaded) and creates a symbol lookup for symbols in that library.VaList.make
(Consumer<VaList.BuilderPREVIEW> actions, MemorySessionPREVIEW session) Creates a variable argument list using a builder (seeVaList.Builder
PREVIEW), with the given memory session.static SegmentAllocatorPREVIEW
SegmentAllocator.newNativeArena
(long arenaSize, long blockSize, MemorySessionPREVIEW session) Creates an arena-based allocator used to allocate native memory segments.static SegmentAllocatorPREVIEW
SegmentAllocator.newNativeArena
(long arenaSize, MemorySessionPREVIEW session) Creates an arena-based allocator used to allocate native memory segments.static SegmentAllocatorPREVIEW
SegmentAllocator.newNativeArena
(MemorySessionPREVIEW session) Creates an unbounded arena-based allocator used to allocate native memory segments.static MemorySegmentPREVIEW
MemorySegment.ofAddress
(MemoryAddressPREVIEW address, long bytesSize, MemorySessionPREVIEW session) Creates a native memory segment with the given size, base address, and memory session.VaList.ofAddress
(MemoryAddressPREVIEW address, MemorySessionPREVIEW session) Creates a variable argument list from a memory address pointing to an existing variable argument list, with the given memory session.Linker.upcallStub
(MethodHandle target, FunctionDescriptorPREVIEW function, MemorySessionPREVIEW session) Creates a stub which can be passed to other foreign functions as a function pointer, with the given memory session. -
Uses of MemorySessionPREVIEW in java.nio.channels
Methods in java.nio.channels with parameters of type MemorySessionPREVIEWModifier and TypeMethodDescriptionFileChannel.map
(FileChannel.MapMode mode, long offset, long size, MemorySessionPREVIEW session) Preview.Maps a region of this channel's file into a new mapped memory segment, with the given offset, size and memory session.