allocateNormal() — netty Function Reference
Architecture documentation for the allocateNormal() function in PoolArena.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b23f2b6f_d095_a24d_02b5_3cce432b929b["allocateNormal()"] de926ba9_75e3_c416_27fc_3623234991a8["PoolArena"] b23f2b6f_d095_a24d_02b5_3cce432b929b -->|defined in| de926ba9_75e3_c416_27fc_3623234991a8 027331c1_1487_71f3_a618_b8048be0dc49["tcacheAllocateSmall()"] 027331c1_1487_71f3_a618_b8048be0dc49 -->|calls| b23f2b6f_d095_a24d_02b5_3cce432b929b 9d7444f8_13af_6f9e_5d68_ab65ea53497c["tcacheAllocateNormal()"] 9d7444f8_13af_6f9e_5d68_ab65ea53497c -->|calls| b23f2b6f_d095_a24d_02b5_3cce432b929b 2476a64f_8776_d678_76d8_c4cd7055f5df["allocate()"] b23f2b6f_d095_a24d_02b5_3cce432b929b -->|calls| 2476a64f_8776_d678_76d8_c4cd7055f5df 3d314bfd_2687_50d6_576c_a0fe2730fd1e["newChunk()"] b23f2b6f_d095_a24d_02b5_3cce432b929b -->|calls| 3d314bfd_2687_50d6_576c_a0fe2730fd1e style b23f2b6f_d095_a24d_02b5_3cce432b929b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolArena.java lines 206–223
private void allocateNormal(PooledByteBuf<T> buf, int reqCapacity, int sizeIdx, PoolThreadCache threadCache) {
assert lock.isHeldByCurrentThread();
if (q050.allocate(buf, reqCapacity, sizeIdx, threadCache) ||
q025.allocate(buf, reqCapacity, sizeIdx, threadCache) ||
q000.allocate(buf, reqCapacity, sizeIdx, threadCache) ||
qInit.allocate(buf, reqCapacity, sizeIdx, threadCache) ||
q075.allocate(buf, reqCapacity, sizeIdx, threadCache)) {
return;
}
// Add a new chunk.
PoolChunk<T> c = newChunk(sizeClass.pageSize, sizeClass.nPSizes, sizeClass.pageShifts, sizeClass.chunkSize);
PooledByteBufAllocator.onAllocateChunk(c, true);
boolean success = c.allocate(buf, reqCapacity, sizeIdx, threadCache);
assert success;
qInit.add(c);
++pooledChunkAllocations;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does allocateNormal() do?
allocateNormal() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolArena.java.
Where is allocateNormal() defined?
allocateNormal() is defined in buffer/src/main/java/io/netty/buffer/PoolArena.java at line 206.
What does allocateNormal() call?
allocateNormal() calls 2 function(s): allocate, newChunk.
What calls allocateNormal()?
allocateNormal() is called by 2 function(s): tcacheAllocateNormal, tcacheAllocateSmall.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free