static final class PoolArena.HeapArena extends PoolArena<byte[]>
PoolArena.DirectArena, PoolArena.HeapArena, PoolArena.SizeClasschunkSize, directMemoryCacheAlignment, directMemoryCacheAlignmentMask, HAS_UNSAFE, numSmallSubpagePools, numThreadCaches, numTinySubpagePools, pageShifts, pageSize, parent, subpageOverflowMask| Constructor and Description |
|---|
HeapArena(PooledByteBufAllocator parent,
int pageSize,
int maxOrder,
int pageShifts,
int chunkSize,
int directMemoryCacheAlignment) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
destroyChunk(PoolChunk<byte[]> chunk) |
(package private) boolean |
isDirect() |
protected void |
memoryCopy(byte[] src,
int srcOffset,
byte[] dst,
int dstOffset,
int length) |
private static byte[] |
newByteArray(int size) |
protected PooledByteBuf<byte[]> |
newByteBuf(int maxCapacity) |
protected PoolChunk<byte[]> |
newChunk(int pageSize,
int maxOrder,
int pageShifts,
int chunkSize) |
protected PoolChunk<byte[]> |
newUnpooledChunk(int capacity) |
alignCapacity, allocate, chunkLists, finalize, findSubpagePoolHead, free, freeChunk, isTiny, isTinyOrSmall, normalizeCapacity, numActiveAllocations, numActiveBytes, numActiveHugeAllocations, numActiveNormalAllocations, numActiveSmallAllocations, numActiveTinyAllocations, numAllocations, numChunkLists, numDeallocations, numHugeAllocations, numHugeDeallocations, numNormalAllocations, numNormalDeallocations, numSmallAllocations, numSmallDeallocations, numSmallSubpages, numThreadCaches, numTinyAllocations, numTinyDeallocations, numTinySubpages, reallocate, smallIdx, smallSubpages, tinyIdx, tinySubpages, toStringHeapArena(PooledByteBufAllocator parent, int pageSize, int maxOrder, int pageShifts, int chunkSize, int directMemoryCacheAlignment)
private static byte[] newByteArray(int size)
protected PoolChunk<byte[]> newChunk(int pageSize, int maxOrder, int pageShifts, int chunkSize)
protected PoolChunk<byte[]> newUnpooledChunk(int capacity)
newUnpooledChunk in class PoolArena<byte[]>protected void destroyChunk(PoolChunk<byte[]> chunk)
destroyChunk in class PoolArena<byte[]>protected PooledByteBuf<byte[]> newByteBuf(int maxCapacity)
newByteBuf in class PoolArena<byte[]>protected void memoryCopy(byte[] src,
int srcOffset,
byte[] dst,
int dstOffset,
int length)
memoryCopy in class PoolArena<byte[]>