Home / Function/ allocate() — netty Function Reference

allocate() — netty Function Reference

Architecture documentation for the allocate() function in PoolArena.java from the netty codebase.

Function java Buffer Telemetry calls 6 called by 3

Entity Profile

Dependency Diagram

graph TD
  2476a64f_8776_d678_76d8_c4cd7055f5df["allocate()"]
  de926ba9_75e3_c416_27fc_3623234991a8["PoolArena"]
  2476a64f_8776_d678_76d8_c4cd7055f5df -->|defined in| de926ba9_75e3_c416_27fc_3623234991a8
  027331c1_1487_71f3_a618_b8048be0dc49["tcacheAllocateSmall()"]
  027331c1_1487_71f3_a618_b8048be0dc49 -->|calls| 2476a64f_8776_d678_76d8_c4cd7055f5df
  b23f2b6f_d095_a24d_02b5_3cce432b929b["allocateNormal()"]
  b23f2b6f_d095_a24d_02b5_3cce432b929b -->|calls| 2476a64f_8776_d678_76d8_c4cd7055f5df
  41f1f758_db84_9e73_7e23_6c7d6ad2b5dd["reallocate()"]
  41f1f758_db84_9e73_7e23_6c7d6ad2b5dd -->|calls| 2476a64f_8776_d678_76d8_c4cd7055f5df
  b510c1b4_5356_1e97_f821_b533bd608719["size2SizeIdx()"]
  2476a64f_8776_d678_76d8_c4cd7055f5df -->|calls| b510c1b4_5356_1e97_f821_b533bd608719
  027331c1_1487_71f3_a618_b8048be0dc49["tcacheAllocateSmall()"]
  2476a64f_8776_d678_76d8_c4cd7055f5df -->|calls| 027331c1_1487_71f3_a618_b8048be0dc49
  9d7444f8_13af_6f9e_5d68_ab65ea53497c["tcacheAllocateNormal()"]
  2476a64f_8776_d678_76d8_c4cd7055f5df -->|calls| 9d7444f8_13af_6f9e_5d68_ab65ea53497c
  b8c374b1_f588_c59a_1c1e_4ac8a08d5947["normalizeSize()"]
  2476a64f_8776_d678_76d8_c4cd7055f5df -->|calls| b8c374b1_f588_c59a_1c1e_4ac8a08d5947
  81898fd1_55d8_5bc5_5801_519a79cdea60["allocateHuge()"]
  2476a64f_8776_d678_76d8_c4cd7055f5df -->|calls| 81898fd1_55d8_5bc5_5801_519a79cdea60
  b2dab5a1_2c8a_6b7d_7572_856bc384aa6d["newByteBuf()"]
  2476a64f_8776_d678_76d8_c4cd7055f5df -->|calls| b2dab5a1_2c8a_6b7d_7572_856bc384aa6d
  style 2476a64f_8776_d678_76d8_c4cd7055f5df fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/PoolArena.java lines 129–133

    PooledByteBuf<T> allocate(PoolThreadCache cache, int reqCapacity, int maxCapacity) {
        PooledByteBuf<T> buf = newByteBuf(maxCapacity);
        allocate(cache, buf, reqCapacity);
        return buf;
    }

Domain

Subdomains

Frequently Asked Questions

What does allocate() do?
allocate() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolArena.java.
Where is allocate() defined?
allocate() is defined in buffer/src/main/java/io/netty/buffer/PoolArena.java at line 129.
What does allocate() call?
allocate() calls 6 function(s): allocateHuge, newByteBuf, normalizeSize, size2SizeIdx, tcacheAllocateNormal, tcacheAllocateSmall.
What calls allocate()?
allocate() is called by 3 function(s): allocateNormal, reallocate, tcacheAllocateSmall.

Analyze Your Own Codebase

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

Try Supermodel Free