runFirstBestFit() — netty Function Reference
Architecture documentation for the runFirstBestFit() function in PoolChunk.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 96d34a61_1614_0158_28ca_09dcdd88e7ba["runFirstBestFit()"] 271be16e_fb25_9fe6_0749_cf5dd80dd903["PoolChunk"] 96d34a61_1614_0158_28ca_09dcdd88e7ba -->|defined in| 271be16e_fb25_9fe6_0749_cf5dd80dd903 ff51bcad_2a8e_9ef1_b286_8e676953d24e["allocateRun()"] ff51bcad_2a8e_9ef1_b286_8e676953d24e -->|calls| 96d34a61_1614_0158_28ca_09dcdd88e7ba style 96d34a61_1614_0158_28ca_09dcdd88e7ba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolChunk.java lines 426–437
private int runFirstBestFit(int pageIdx) {
if (freeBytes == chunkSize) {
return arena.sizeClass.nPSizes - 1;
}
for (int i = pageIdx; i < arena.sizeClass.nPSizes; i++) {
IntPriorityQueue queue = runsAvail[i];
if (queue != null && !queue.isEmpty()) {
return i;
}
}
return -1;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does runFirstBestFit() do?
runFirstBestFit() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolChunk.java.
Where is runFirstBestFit() defined?
runFirstBestFit() is defined in buffer/src/main/java/io/netty/buffer/PoolChunk.java at line 426.
What calls runFirstBestFit()?
runFirstBestFit() is called by 1 function(s): allocateRun.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free