Package io.netty.buffer
Class PoolArena.HeapArena
- java.lang.Object
-
- io.netty.buffer.PoolArena<byte[]>
-
- io.netty.buffer.PoolArena.HeapArena
-
- All Implemented Interfaces:
PoolArenaMetric
static final class PoolArena.HeapArena extends PoolArena<byte[]>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty.buffer.PoolArena
PoolArena.DirectArena, PoolArena.HeapArena, PoolArena.SizeClass
-
-
Field Summary
-
Fields inherited from class io.netty.buffer.PoolArena
chunkSize, directMemoryCacheAlignment, directMemoryCacheAlignmentMask, HAS_UNSAFE, numSmallSubpagePools, numThreadCaches, numTinySubpagePools, pageShifts, pageSize, parent, subpageOverflowMask
-
-
Constructor Summary
Constructors Constructor Description HeapArena(PooledByteBufAllocator parent, int pageSize, int maxOrder, int pageShifts, int chunkSize, int directMemoryCacheAlignment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
destroyChunk(PoolChunk<byte[]> chunk)
(package private) boolean
isDirect()
protected void
memoryCopy(byte[] src, int srcOffset, PooledByteBuf<byte[]> dst, 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)
-
Methods inherited from class io.netty.buffer.PoolArena
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, toString
-
-
-
-
Constructor Detail
-
HeapArena
HeapArena(PooledByteBufAllocator parent, int pageSize, int maxOrder, int pageShifts, int chunkSize, int directMemoryCacheAlignment)
-
-
Method Detail
-
newByteArray
private static byte[] newByteArray(int size)
-
newChunk
protected PoolChunk<byte[]> newChunk(int pageSize, int maxOrder, int pageShifts, int chunkSize)
-
newUnpooledChunk
protected PoolChunk<byte[]> newUnpooledChunk(int capacity)
- Specified by:
newUnpooledChunk
in classPoolArena<byte[]>
-
destroyChunk
protected void destroyChunk(PoolChunk<byte[]> chunk)
- Specified by:
destroyChunk
in classPoolArena<byte[]>
-
newByteBuf
protected PooledByteBuf<byte[]> newByteBuf(int maxCapacity)
- Specified by:
newByteBuf
in classPoolArena<byte[]>
-
memoryCopy
protected void memoryCopy(byte[] src, int srcOffset, PooledByteBuf<byte[]> dst, int length)
- Specified by:
memoryCopy
in classPoolArena<byte[]>
-
-