pooledDirectAllocAndFree() — netty Function Reference
Architecture documentation for the pooledDirectAllocAndFree() function in ByteBufAllocateAndGrowBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD af6e2cdc_c78e_15ef_a256_bad00644c759["pooledDirectAllocAndFree()"] fc3b0965_3296_b97f_be0e_37f95bff98b5["ByteBufAllocateAndGrowBenchmark"] af6e2cdc_c78e_15ef_a256_bad00644c759 -->|defined in| fc3b0965_3296_b97f_be0e_37f95bff98b5 0682dd35_0259_0d96_91dc_bd05b7e40d1b["expandBuffer()"] af6e2cdc_c78e_15ef_a256_bad00644c759 -->|calls| 0682dd35_0259_0d96_91dc_bd05b7e40d1b style af6e2cdc_c78e_15ef_a256_bad00644c759 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocateAndGrowBenchmark.java lines 72–82
@Benchmark
public void pooledDirectAllocAndFree(BufStats stats) {
int idx = rand.nextInt(pooledDirectBuffers.length);
ByteBuf oldBuf = pooledDirectBuffers[idx];
if (oldBuf != null) {
oldBuf.release();
}
ByteBuf buf = pooledAllocator.directBuffer();
expandBuffer(buf, stats);
pooledDirectBuffers[idx] = buf;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does pooledDirectAllocAndFree() do?
pooledDirectAllocAndFree() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocateAndGrowBenchmark.java.
Where is pooledDirectAllocAndFree() defined?
pooledDirectAllocAndFree() is defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocateAndGrowBenchmark.java at line 72.
What does pooledDirectAllocAndFree() call?
pooledDirectAllocAndFree() calls 1 function(s): expandBuffer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free