Arena (Java SE 22 & JDK 22)
-
Method Summary
allocate(long byteSize, long byteAlignment) Returns a native memory segment with the given size (in bytes) and alignment constraint (in bytes).
voidclose()global()Returns the global arena.
ofAuto()Creates a new arena that is managed, automatically, by the garbage collector.
Returns a new confined arena.
ofShared()Returns a new shared arena.
scope()Methods declared in interface java.lang.foreign.SegmentAllocator
allocate, allocate, allocate, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom, allocateFrom
-
Method Details
-
ofAuto
-
global
-
ofConfined
-
allocate
-
scope
-
close
-