Home / Function/ pooledHeapAllocAndFree() — netty Function Reference

pooledHeapAllocAndFree() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorBenchmark.java lines 122–130

    @Benchmark
    public void pooledHeapAllocAndFree() {
        int idx = nextIndex();
        ByteBuf oldBuf = pooledHeapBuffers[idx];
        if (oldBuf != null) {
            oldBuf.release();
        }
        pooledHeapBuffers[idx] = pooledAllocator.heapBuffer(size);
    }

Domain

Subdomains

Calls

Frequently Asked Questions

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