cacheForNormal() — netty Function Reference
Architecture documentation for the cacheForNormal() function in PoolThreadCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 59ad3e91_bd0f_e86a_c592_5fbef948c057["cacheForNormal()"] f4c407ea_9e8c_d00d_ea7e_e355c94f8aba["PoolThreadCache"] 59ad3e91_bd0f_e86a_c592_5fbef948c057 -->|defined in| f4c407ea_9e8c_d00d_ea7e_e355c94f8aba e8e3b809_f6ce_ff31_6add_bfbdca5637eb["allocateNormal()"] e8e3b809_f6ce_ff31_6add_bfbdca5637eb -->|calls| 59ad3e91_bd0f_e86a_c592_5fbef948c057 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07["cache()"] 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 -->|calls| 59ad3e91_bd0f_e86a_c592_5fbef948c057 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07["cache()"] 59ad3e91_bd0f_e86a_c592_5fbef948c057 -->|calls| 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 style 59ad3e91_bd0f_e86a_c592_5fbef948c057 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolThreadCache.java lines 280–287
private MemoryRegionCache<?> cacheForNormal(PoolArena<?> area, int sizeIdx) {
// We need to subtract area.sizeClass.nSubpages as sizeIdx is the overall index for all sizes.
int idx = sizeIdx - area.sizeClass.nSubpages;
if (area.isDirect()) {
return cache(normalDirectCaches, idx);
}
return cache(normalHeapCaches, idx);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does cacheForNormal() do?
cacheForNormal() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java.
Where is cacheForNormal() defined?
cacheForNormal() is defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java at line 280.
What does cacheForNormal() call?
cacheForNormal() calls 1 function(s): cache.
What calls cacheForNormal()?
cacheForNormal() is called by 2 function(s): allocateNormal, cache.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free