Home / Function/ allocateAndRelease() — netty Function Reference

allocateAndRelease() — netty Function Reference

Architecture documentation for the allocateAndRelease() function in RandomSizeByteBufAllocationBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6b274d37_3ef9_943a_4ef3_0d4cfd6cd5f8["allocateAndRelease()"]
  8839dc57_30e1_9514_ff04_baa254ce09fc["RandomSizeByteBufAllocationBenchmark"]
  6b274d37_3ef9_943a_4ef3_0d4cfd6cd5f8 -->|defined in| 8839dc57_30e1_9514_ff04_baa254ce09fc
  62a3538f_bbd9_5546_d30b_7d39e1fb54a0["nextSize()"]
  6b274d37_3ef9_943a_4ef3_0d4cfd6cd5f8 -->|calls| 62a3538f_bbd9_5546_d30b_7d39e1fb54a0
  style 6b274d37_3ef9_943a_4ef3_0d4cfd6cd5f8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/RandomSizeByteBufAllocationBenchmark.java lines 129–135

    @Benchmark
    public void allocateAndRelease(Blackhole bh) {
        int size = nextSize();
        ByteBuf buffer = allocator.buffer(size);
        bh.consume(buffer);
        buffer.release();
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does allocateAndRelease() do?
allocateAndRelease() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/RandomSizeByteBufAllocationBenchmark.java.
Where is allocateAndRelease() defined?
allocateAndRelease() is defined in microbench/src/main/java/io/netty/microbench/buffer/RandomSizeByteBufAllocationBenchmark.java at line 129.
What does allocateAndRelease() call?
allocateAndRelease() calls 1 function(s): nextSize.

Analyze Your Own Codebase

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

Try Supermodel Free