Home / Function/ unpooledDirectAllocAndFree() — netty Function Reference

unpooledDirectAllocAndFree() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorBenchmark.java lines 112–120

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

Domain

Subdomains

Calls

Frequently Asked Questions

What does unpooledDirectAllocAndFree() do?
unpooledDirectAllocAndFree() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorBenchmark.java.
Where is unpooledDirectAllocAndFree() defined?
unpooledDirectAllocAndFree() is defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorBenchmark.java at line 112.
What does unpooledDirectAllocAndFree() call?
unpooledDirectAllocAndFree() 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