private static final class AllocatedNativeMemoryIO.AllocationGroup extends PhantomReferenceReaper<java.lang.Object> implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
private long |
bytesUsed |
private AllocatedNativeMemoryIO.MemoryAllocation |
head |
static int |
MAX_BYTES_PER_BUCKET |
private java.lang.ref.WeakReference<java.lang.Object> |
weakref |
| Constructor and Description |
|---|
AllocationGroup(java.lang.Object sentinel) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
add(AllocatedNativeMemoryIO.MemoryAllocation m,
int size) |
(package private) boolean |
canAccept(int size) |
void |
run() |
(package private) java.lang.Object |
sentinel() |
public static final int MAX_BYTES_PER_BUCKET
private final java.lang.ref.WeakReference<java.lang.Object> weakref
private volatile AllocatedNativeMemoryIO.MemoryAllocation head
private long bytesUsed
java.lang.Object sentinel()
void add(AllocatedNativeMemoryIO.MemoryAllocation m, int size)
boolean canAccept(int size)
public final void run()
run in interface java.lang.Runnable