Home / Function/ adaptiveDirectAllocAndFree() — netty Function Reference

adaptiveDirectAllocAndFree() — netty Function Reference

Architecture documentation for the adaptiveDirectAllocAndFree() function in ByteBufAllocatorBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4dd2df73_f898_8055_225e_14e28f8b9d3a["adaptiveDirectAllocAndFree()"]
  b790eb42_4bb8_2c60_030a_589908a419ad["ByteBufAllocatorBenchmark"]
  4dd2df73_f898_8055_225e_14e28f8b9d3a -->|defined in| b790eb42_4bb8_2c60_030a_589908a419ad
  dee07766_8a73_7f50_0bd7_3e8aa75c5c54["nextIndex()"]
  4dd2df73_f898_8055_225e_14e28f8b9d3a -->|calls| dee07766_8a73_7f50_0bd7_3e8aa75c5c54
  style 4dd2df73_f898_8055_225e_14e28f8b9d3a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorBenchmark.java lines 172–180

    @Benchmark
    public void adaptiveDirectAllocAndFree() {
        int idx = nextIndex();
        ByteBuf oldBuf = adaptiveDirectBuffers[idx];
        if (oldBuf != null) {
            oldBuf.release();
        }
        adaptiveDirectBuffers[idx] = adaptiveAllocator.directBuffer(size);
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does adaptiveDirectAllocAndFree() do?
adaptiveDirectAllocAndFree() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorBenchmark.java.
Where is adaptiveDirectAllocAndFree() defined?
adaptiveDirectAllocAndFree() is defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorBenchmark.java at line 172.
What does adaptiveDirectAllocAndFree() call?
adaptiveDirectAllocAndFree() calls 1 function(s): nextIndex.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free