Home / Function/ cacheForSmall() — netty Function Reference

cacheForSmall() — netty Function Reference

Architecture documentation for the cacheForSmall() function in PoolThreadCache.java from the netty codebase.

Function java Buffer Search calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  2e5e41fb_5512_318e_5f4b_1097ff34f0ba["cacheForSmall()"]
  f4c407ea_9e8c_d00d_ea7e_e355c94f8aba["PoolThreadCache"]
  2e5e41fb_5512_318e_5f4b_1097ff34f0ba -->|defined in| f4c407ea_9e8c_d00d_ea7e_e355c94f8aba
  3d3d2bff_2825_15d9_1c0a_1051549ec76d["allocateSmall()"]
  3d3d2bff_2825_15d9_1c0a_1051549ec76d -->|calls| 2e5e41fb_5512_318e_5f4b_1097ff34f0ba
  0cb1e698_5776_a20e_cb9d_1f9bc7c12e07["cache()"]
  0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 -->|calls| 2e5e41fb_5512_318e_5f4b_1097ff34f0ba
  0cb1e698_5776_a20e_cb9d_1f9bc7c12e07["cache()"]
  2e5e41fb_5512_318e_5f4b_1097ff34f0ba -->|calls| 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07
  style 2e5e41fb_5512_318e_5f4b_1097ff34f0ba fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/PoolThreadCache.java lines 273–278

    private MemoryRegionCache<?> cacheForSmall(PoolArena<?> area, int sizeIdx) {
        if (area.isDirect()) {
            return cache(smallSubPageDirectCaches, sizeIdx);
        }
        return cache(smallSubPageHeapCaches, sizeIdx);
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does cacheForSmall() do?
cacheForSmall() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java.
Where is cacheForSmall() defined?
cacheForSmall() is defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java at line 273.
What does cacheForSmall() call?
cacheForSmall() calls 1 function(s): cache.
What calls cacheForSmall()?
cacheForSmall() is called by 2 function(s): allocateSmall, cache.

Analyze Your Own Codebase

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

Try Supermodel Free