SubPageMemoryRegionCache Class — netty Architecture
Architecture documentation for the SubPageMemoryRegionCache class in PoolThreadCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bbef427f_2300_499a_c5ff_51074bb83716["SubPageMemoryRegionCache"] 2a7d96ed_6f58_dca1_f092_d9cac20e28ae["PoolThreadCache.java"] bbef427f_2300_499a_c5ff_51074bb83716 -->|defined in| 2a7d96ed_6f58_dca1_f092_d9cac20e28ae 11ed6814_5b20_9ef0_5a60_a4e69469b524["SubPageMemoryRegionCache()"] bbef427f_2300_499a_c5ff_51074bb83716 -->|method| 11ed6814_5b20_9ef0_5a60_a4e69469b524 d2411f75_19a8_98b1_f2a5_14513a93a02e["initBuf()"] bbef427f_2300_499a_c5ff_51074bb83716 -->|method| d2411f75_19a8_98b1_f2a5_14513a93a02e
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolThreadCache.java lines 299–310
private static final class SubPageMemoryRegionCache<T> extends MemoryRegionCache<T> {
SubPageMemoryRegionCache(int size) {
super(size, SizeClass.Small);
}
@Override
protected void initBuf(
PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, PooledByteBuf<T> buf, int reqCapacity,
PoolThreadCache threadCache) {
chunk.initBufWithSubpage(buf, nioBuffer, handle, reqCapacity, threadCache, true);
}
}
Source
Frequently Asked Questions
What is the SubPageMemoryRegionCache class?
SubPageMemoryRegionCache is a class in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java.
Where is SubPageMemoryRegionCache defined?
SubPageMemoryRegionCache is defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java at line 299.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free