static final class PoolArena.DirectArena extends PoolArena<java.nio.ByteBuffer>
PoolArena.DirectArena, PoolArena.HeapArena, PoolArena.SizeClass
chunkSize, HAS_UNSAFE, numSmallSubpagePools, numThreadCaches, numTinySubpagePools, pageShifts, pageSize, parent, subpageOverflowMask
Constructor and Description |
---|
DirectArena(PooledByteBufAllocator parent,
int pageSize,
int maxOrder,
int pageShifts,
int chunkSize) |
Modifier and Type | Method and Description |
---|---|
private static java.nio.ByteBuffer |
allocateDirect(int capacity) |
protected void |
destroyChunk(PoolChunk<java.nio.ByteBuffer> chunk) |
(package private) boolean |
isDirect() |
protected void |
memoryCopy(java.nio.ByteBuffer src,
int srcOffset,
java.nio.ByteBuffer dst,
int dstOffset,
int length) |
protected PooledByteBuf<java.nio.ByteBuffer> |
newByteBuf(int maxCapacity) |
protected PoolChunk<java.nio.ByteBuffer> |
newChunk(int pageSize,
int maxOrder,
int pageShifts,
int chunkSize) |
protected PoolChunk<java.nio.ByteBuffer> |
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
DirectArena(PooledByteBufAllocator parent, int pageSize, int maxOrder, int pageShifts, int chunkSize)
protected PoolChunk<java.nio.ByteBuffer> newChunk(int pageSize, int maxOrder, int pageShifts, int chunkSize)
protected PoolChunk<java.nio.ByteBuffer> newUnpooledChunk(int capacity)
newUnpooledChunk
in class PoolArena<java.nio.ByteBuffer>
private static java.nio.ByteBuffer allocateDirect(int capacity)
protected void destroyChunk(PoolChunk<java.nio.ByteBuffer> chunk)
destroyChunk
in class PoolArena<java.nio.ByteBuffer>
protected PooledByteBuf<java.nio.ByteBuffer> newByteBuf(int maxCapacity)
newByteBuf
in class PoolArena<java.nio.ByteBuffer>
protected void memoryCopy(java.nio.ByteBuffer src, int srcOffset, java.nio.ByteBuffer dst, int dstOffset, int length)
memoryCopy
in class PoolArena<java.nio.ByteBuffer>