Home / Function/ threadLocalSize() — netty Function Reference

threadLocalSize() — netty Function Reference

Architecture documentation for the threadLocalSize() function in Recycler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3dd8d308_b2cc_2e94_8910_2fb848875a0b["threadLocalSize()"]
  2e480a34_d633_ddbb_a405_05fdc823a6b2["Recycler"]
  3dd8d308_b2cc_2e94_8910_2fb848875a0b -->|defined in| 2e480a34_d633_ddbb_a405_05fdc823a6b2
  75c2be6e_1969_12cc_0654_6b76fe47981c["size()"]
  3dd8d308_b2cc_2e94_8910_2fb848875a0b -->|calls| 75c2be6e_1969_12cc_0654_6b76fe47981c
  style 3dd8d308_b2cc_2e94_8910_2fb848875a0b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/Recycler.java lines 343–358

    @VisibleForTesting
    final int threadLocalSize() {
        if (localPool != null) {
            return localPool.size();
        } else {
            if (PlatformDependent.isVirtualThread(Thread.currentThread()) &&
                !FastThreadLocalThread.currentThreadHasFastThreadLocal()) {
                return 0;
            }
            final LocalPool<?, T> pool = threadLocalPool.getIfExists();
            if (pool == null) {
                return 0;
            }
            return pool.size();
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does threadLocalSize() do?
threadLocalSize() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/Recycler.java.
Where is threadLocalSize() defined?
threadLocalSize() is defined in common/src/main/java/io/netty/util/Recycler.java at line 343.
What does threadLocalSize() call?
threadLocalSize() calls 1 function(s): size.

Analyze Your Own Codebase

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

Try Supermodel Free