Class PoolArena.HeapArena
java.lang.Object
io.netty.buffer.PoolArena<byte[]>
io.netty.buffer.PoolArena.HeapArena
- All Implemented Interfaces:
PoolArenaMetric, SizeClassesMetric
-
Nested Class Summary
Nested classes/interfaces inherited from class PoolArena
PoolArena.DirectArena, PoolArena.HeapArena, PoolArena.SizeClass -
Field Summary
FieldsFields inherited from class PoolArena
numThreadCaches, parent, sizeClass, smallSubpagePools -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddestroyChunk(PoolChunk<byte[]> chunk) (package private) booleanisDirect()protected voidmemoryCopy(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 maxPageIdx, int pageShifts, int chunkSize) protected PoolChunk<byte[]> newUnpooledChunk(int capacity) Methods inherited from class PoolArena
allocate, chunkLists, finalize, free, freeChunk, lock, normalizeSize, numActiveAllocations, numActiveBytes, numActiveHugeAllocations, numActiveNormalAllocations, numActiveSmallAllocations, numActiveTinyAllocations, numAllocations, numChunkLists, numDeallocations, numHugeAllocations, numHugeDeallocations, numNormalAllocations, numNormalDeallocations, numPinnedBytes, numSmallAllocations, numSmallDeallocations, numSmallSubpages, numThreadCaches, numTinyAllocations, numTinyDeallocations, numTinySubpages, pageIdx2size, pageIdx2sizeCompute, pages2pageIdx, pages2pageIdxFloor, reallocate, size2SizeIdx, sizeIdx2size, sizeIdx2sizeCompute, smallSubpages, tinySubpages, toString, unlock
-
Field Details
-
lastDestroyedChunk
-
-
Constructor Details
-
HeapArena
HeapArena(PooledByteBufAllocator parent, SizeClasses sizeClass)
-
-
Method Details
-
newByteArray
private static byte[] newByteArray(int size) -
isDirect
-
newChunk
-
newUnpooledChunk
- Specified by:
newUnpooledChunkin classPoolArena<byte[]>
-
destroyChunk
- Specified by:
destroyChunkin classPoolArena<byte[]>
-
newByteBuf
- Specified by:
newByteBufin classPoolArena<byte[]>
-
memoryCopy
- Specified by:
memoryCopyin classPoolArena<byte[]>
-