Home / Function/ AllocConfig() — netty Function Reference

AllocConfig() — netty Function Reference

Architecture documentation for the AllocConfig() function in AllocationPatternSimulator.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  99f6cde3_0ee5_22d5_f91f_0a12e1561207["AllocConfig()"]
  27e61a5f_6c04_1fc0_a0bf_9f0aa035c565["AllocConfig"]
  99f6cde3_0ee5_22d5_f91f_0a12e1561207 -->|defined in| 27e61a5f_6c04_1fc0_a0bf_9f0aa035c565
  76ec3af2_8878_9d60_39b7_18461aa6fefd["run()"]
  76ec3af2_8878_9d60_39b7_18461aa6fefd -->|calls| 99f6cde3_0ee5_22d5_f91f_0a12e1561207
  style 99f6cde3_0ee5_22d5_f91f_0a12e1561207 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/buffer/AllocationPatternSimulator.java lines 583–588

        AllocConfig(boolean isAdaptive, int avgLiveBufs) {
            allocator = isAdaptive ? new AdaptiveByteBufAllocator() : new PooledByteBufAllocator();
            name = String.format(isAdaptive ? "Adaptive (%s)" : "Pooled (%s)", avgLiveBufs);
            this.avgLiveBufs = avgLiveBufs;
            rng = new SplittableRandom(0xBEEFBEEFL);
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does AllocConfig() do?
AllocConfig() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/buffer/AllocationPatternSimulator.java.
Where is AllocConfig() defined?
AllocConfig() is defined in microbench/src/main/java/io/netty/buffer/AllocationPatternSimulator.java at line 583.
What calls AllocConfig()?
AllocConfig() is called by 1 function(s): run.

Analyze Your Own Codebase

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

Try Supermodel Free