APIdia Launch Partner
Top Description Fields Constructors Methods
java.nio

pack-priv Class Bits

extends Object
Class Inheritance
Imports
jdk.internal.access.JavaLangRefAccess, .SharedSecrets, jdk.internal.misc.Unsafe, .VM, .VM.BufferPool, java.util.concurrent.atomic.AtomicLong

Access to bits, native and otherwise.

Field Summary

Modifier and TypeField and Description
pack-priv static final VM.BufferPool
private static final AtomicLong
private static final long
pack-priv static final int
pack-priv static final int
private static volatile long
private static final int
private static volatile boolean
private static int
private static int
private static final Object
private static final AtomicLong
private static final AtomicLong
private static boolean
private static final Unsafe
pack-priv static final long

Constructor Summary

AccessConstructor and Description
private
Bits()

Method Summary

Modifier and TypeMethod and Description
pack-priv static long
pageCount(long size)

pack-priv static int
pack-priv static void
reserveMemory(long size, long cap)

pack-priv static void
setMemory(long
the starting memory address
srcAddr
,
long
the number of bytes to set
count
,
byte
the byte value to set
value
)

Sets a block of memory starting from a given address to a specified byte value.

pack-priv static short
swap(short x)

pack-priv static char
swap(char x)

pack-priv static int
swap(int x)

pack-priv static long
swap(long x)

private static boolean
tryReserveMemory(long size, long cap)

private static boolean
tryReserveOrClean(long size, long cap)

pack-priv static boolean
pack-priv static void
unreserveMemory(long size, long cap)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BUFFER_POOLback to summary
pack-priv static final VM.BufferPool BUFFER_POOL
COUNTback to summary
private static final AtomicLong COUNT
INITIAL_SLEEPback to summary
private static final long INITIAL_SLEEP
JNI_COPY_FROM_ARRAY_THRESHOLDback to summary
pack-priv static final int JNI_COPY_FROM_ARRAY_THRESHOLD
JNI_COPY_TO_ARRAY_THRESHOLDback to summary
pack-priv static final int JNI_COPY_TO_ARRAY_THRESHOLD
MAX_MEMORYback to summary
private static volatile long MAX_MEMORY
MAX_SLEEPSback to summary
private static final int MAX_SLEEPS
MEMORY_LIMIT_SETback to summary
private static volatile boolean MEMORY_LIMIT_SET
PAGE_SIZEback to summary
private static int PAGE_SIZE
RESERVE_GC_EPOCHback to summary
private static int RESERVE_GC_EPOCH
RESERVE_SLOWPATH_LOCKback to summary
private static final Object RESERVE_SLOWPATH_LOCK
RESERVED_MEMORYback to summary
private static final AtomicLong RESERVED_MEMORY
TOTAL_CAPACITYback to summary
private static final AtomicLong TOTAL_CAPACITY
UNALIGNEDback to summary
private static boolean UNALIGNED
UNSAFEback to summary
private static final Unsafe UNSAFE
UNSAFE_SET_THRESHOLDback to summary
pack-priv static final long UNSAFE_SET_THRESHOLD

Constructor Detail

Bitsback to summary
private Bits()

Method Detail

pageCountback to summary
pack-priv static long pageCount(long size)
pageSizeback to summary
pack-priv static int pageSize()
reserveMemoryback to summary
pack-priv static void reserveMemory(long size, long cap)
setMemoryback to summary
pack-priv static void setMemory(long srcAddr, long count, byte value)

Sets a block of memory starting from a given address to a specified byte value.

Parameters
srcAddr:long

the starting memory address

count:long

the number of bytes to set

value:byte

the byte value to set

swapback to summary
pack-priv static short swap(short x)
swapback to summary
pack-priv static char swap(char x)
swapback to summary
pack-priv static int swap(int x)
swapback to summary
pack-priv static long swap(long x)
tryReserveMemoryback to summary
private static boolean tryReserveMemory(long size, long cap)
tryReserveOrCleanback to summary
private static boolean tryReserveOrClean(long size, long cap) throws InterruptedException
unalignedback to summary
pack-priv static boolean unaligned()
unreserveMemoryback to summary
pack-priv static void unreserveMemory(long size, long cap)