static final class PoolArena.HeapArena extends PoolArena<byte[]>
PoolArena.DirectArena, PoolArena.HeapArena, PoolArena.SizeClass
chunkSize, HAS_UNSAFE, numSmallSubpagePools, numThreadCaches, numTinySubpagePools, pageShifts, pageSize, parent, subpageOverflowMask
Constructor and Description |
---|
HeapArena(PooledByteBufAllocator parent,
int pageSize,
int maxOrder,
int pageShifts,
int chunkSize) |
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) |
protected PooledByteBuf<byte[]> |
newByteBuf(int maxCapacity) |
protected PoolChunk<byte[]> |
newChunk(int pageSize,
int maxOrder,
int pageShifts,
int chunkSize) |
protected PoolChunk<byte[]> |
newUnpooledChunk(int capacity) |
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, toString
HeapArena(PooledByteBufAllocator parent, int pageSize, int maxOrder, int pageShifts, int chunkSize)
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[]>