tcacheAllocateNormal() — netty Function Reference
Architecture documentation for the tcacheAllocateNormal() function in PoolArena.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9d7444f8_13af_6f9e_5d68_ab65ea53497c["tcacheAllocateNormal()"] de926ba9_75e3_c416_27fc_3623234991a8["PoolArena"] 9d7444f8_13af_6f9e_5d68_ab65ea53497c -->|defined in| de926ba9_75e3_c416_27fc_3623234991a8 2476a64f_8776_d678_76d8_c4cd7055f5df["allocate()"] 2476a64f_8776_d678_76d8_c4cd7055f5df -->|calls| 9d7444f8_13af_6f9e_5d68_ab65ea53497c b23f2b6f_d095_a24d_02b5_3cce432b929b["allocateNormal()"] 9d7444f8_13af_6f9e_5d68_ab65ea53497c -->|calls| b23f2b6f_d095_a24d_02b5_3cce432b929b a9955d3f_a5f7_e9ad_827d_87d47e26b575["lock()"] 9d7444f8_13af_6f9e_5d68_ab65ea53497c -->|calls| a9955d3f_a5f7_e9ad_827d_87d47e26b575 c24c38bc_94a5_6dd7_1e0a_4abbf00b61e7["unlock()"] 9d7444f8_13af_6f9e_5d68_ab65ea53497c -->|calls| c24c38bc_94a5_6dd7_1e0a_4abbf00b61e7 style 9d7444f8_13af_6f9e_5d68_ab65ea53497c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolArena.java lines 191–204
private void tcacheAllocateNormal(PoolThreadCache cache, PooledByteBuf<T> buf, final int reqCapacity,
final int sizeIdx) {
if (cache.allocateNormal(this, buf, reqCapacity, sizeIdx)) {
// was able to allocate out of the cache so move on
return;
}
lock();
try {
allocateNormal(buf, reqCapacity, sizeIdx, cache);
++allocationsNormal;
} finally {
unlock();
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does tcacheAllocateNormal() do?
tcacheAllocateNormal() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolArena.java.
Where is tcacheAllocateNormal() defined?
tcacheAllocateNormal() is defined in buffer/src/main/java/io/netty/buffer/PoolArena.java at line 191.
What does tcacheAllocateNormal() call?
tcacheAllocateNormal() calls 3 function(s): allocateNormal, lock, unlock.
What calls tcacheAllocateNormal()?
tcacheAllocateNormal() is called by 1 function(s): allocate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free