Uses of Interface
io.netty.buffer.ChunkInfo
-
Packages that use ChunkInfo Package Description io.netty.buffer Abstraction of a byte buffer - the fundamental data structure to represent a low-level binary and text message. -
-
Uses of ChunkInfo in io.netty.buffer
Classes in io.netty.buffer that implement ChunkInfo Modifier and Type Class Description private static classAdaptivePoolingAllocator.BuddyChunk(package private) static classAdaptivePoolingAllocator.Chunk(package private) static classAdaptivePoolingAllocator.SizeClassedChunkRemoves per-allocation retain()/release() atomic ops from the hot path by replacing ref counting with a segment-count state machine.(package private) classPoolChunk<T>Description of algorithm for PageRun/PoolSubpage allocation from PoolChunk Notation: The following terms are important to understand the code > page - a page is the smallest unit of memory chunk that can be allocated > run - a run is a collection of pages > chunk - a chunk is a collection of runs > in this code chunkSize = maxPages * pageSize To begin we allocate a byte array of size = chunkSize Whenever a ByteBuf of given size needs to be created we search for the first position in the byte array that has enough empty space to accommodate the requested size and return a (long) handle that encodes this offset information, (this memory segment is then marked as reserved so it is always used by exactly one ByteBuf and no more) For simplicity all sizes are normalized according to {@link PoolArena#sizeClass#size2SizeIdx(int)} method.Methods in io.netty.buffer with parameters of type ChunkInfo Modifier and Type Method Description voidAbstractChunkEvent. fill(ChunkInfo chunk, java.lang.Class<? extends AbstractByteBufAllocator> allocatorType)(package private) static voidPooledByteBufAllocator. onAllocateChunk(ChunkInfo chunk, boolean pooled)(package private) static voidPooledByteBufAllocator. onDeallocateChunk(ChunkInfo chunk, boolean pooled)
-