private static final class CachingNativeMemoryAllocator.Magazine
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private CachingNativeMemoryAllocator.MemoryAllocation[] |
allocations |
(package private) CachingNativeMemoryAllocator.Bucket |
bucket |
private boolean |
fragmented |
(package private) static int |
MAX_BYTES_PER_MAGAZINE |
private int |
nextIndex |
| Constructor and Description |
|---|
Magazine(CachingNativeMemoryAllocator.Bucket bucket) |
| Modifier and Type | Method and Description |
|---|---|
(package private) CachingNativeMemoryAllocator.MemoryAllocation |
allocate(boolean clear) |
(package private) void |
dispose() |
(package private) void |
recycle() |
(package private) void |
setFragmented() |
static final int MAX_BYTES_PER_MAGAZINE
final CachingNativeMemoryAllocator.Bucket bucket
private final CachingNativeMemoryAllocator.MemoryAllocation[] allocations
private int nextIndex
private volatile boolean fragmented
Magazine(CachingNativeMemoryAllocator.Bucket bucket)
CachingNativeMemoryAllocator.MemoryAllocation allocate(boolean clear)
void setFragmented()
void dispose()
void recycle()