createNormalCaches() — netty Function Reference
Architecture documentation for the createNormalCaches() function in PoolThreadCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 889d822a_52d8_de93_dcf2_0a4944151cf9["createNormalCaches()"] f4c407ea_9e8c_d00d_ea7e_e355c94f8aba["PoolThreadCache"] 889d822a_52d8_de93_dcf2_0a4944151cf9 -->|defined in| f4c407ea_9e8c_d00d_ea7e_e355c94f8aba 0e603157_90bc_3e55_d20f_3030a8c4d853["PoolThreadCache()"] 0e603157_90bc_3e55_d20f_3030a8c4d853 -->|calls| 889d822a_52d8_de93_dcf2_0a4944151cf9 f0dd6d53_8cde_9782_233c_ebff914c0232["add()"] 889d822a_52d8_de93_dcf2_0a4944151cf9 -->|calls| f0dd6d53_8cde_9782_233c_ebff914c0232 style 889d822a_52d8_de93_dcf2_0a4944151cf9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolThreadCache.java lines 120–136
@SuppressWarnings("unchecked")
private static <T> MemoryRegionCache<T>[] createNormalCaches(
int cacheSize, int maxCachedBufferCapacity, PoolArena<T> area) {
if (cacheSize > 0 && maxCachedBufferCapacity > 0) {
int max = Math.min(area.sizeClass.chunkSize, maxCachedBufferCapacity);
// Create as many normal caches as we support based on how many sizeIdx we have and what the upper
// bound is that we want to cache in general.
List<MemoryRegionCache<T>> cache = new ArrayList<MemoryRegionCache<T>>() ;
for (int idx = area.sizeClass.nSubpages; idx < area.sizeClass.nSizes &&
area.sizeClass.sizeIdx2size(idx) <= max; idx++) {
cache.add(new NormalMemoryRegionCache<T>(cacheSize));
}
return cache.toArray(new MemoryRegionCache[0]);
} else {
return null;
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does createNormalCaches() do?
createNormalCaches() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java.
Where is createNormalCaches() defined?
createNormalCaches() is defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java at line 120.
What does createNormalCaches() call?
createNormalCaches() calls 1 function(s): add.
What calls createNormalCaches()?
createNormalCaches() is called by 1 function(s): PoolThreadCache.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free