Package cpufeatures.headers.x86
Class CacheInfo
java.lang.Object
cpufeatures.headers.x86.CacheInfo
CacheInfo relies on preview features of the Java platform:
CacheInforefers to one or more preview APIs:MemoryAddress,MemoryLayout,MemorySegment,MemorySession,SegmentAllocator.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutPREVIEW$LAYOUT()static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator) static MemorySegmentPREVIEWallocateArray(int len, SegmentAllocatorPREVIEW allocator) static MemorySegmentPREVIEWstatic MemorySegmentPREVIEWofAddress(MemoryAddressPREVIEW addr, MemorySessionPREVIEW session) static intstatic intsize$get(MemorySegmentPREVIEW seg, long index) static voidsize$set(MemorySegmentPREVIEW seg, int x) static voidsize$set(MemorySegmentPREVIEW seg, long index, int x) static VarHandlesize$VH()static longsizeof()
-
Constructor Details
-
CacheInfo
public CacheInfo()
-
-
Method Details
-
$LAYOUT
-
size$VH
-
size$get
-
size$set
-
size$get
-
size$set
-
levels$slice
-
sizeof
public static long sizeof() -
allocate
-
allocateArray
-
ofAddress
public static MemorySegmentPREVIEW ofAddress(MemoryAddressPREVIEW addr, MemorySessionPREVIEW session)
-
CacheInfowhen preview features are enabled.