Home / Function/ removeAll() — netty Function Reference

removeAll() — netty Function Reference

Architecture documentation for the removeAll() function in FastThreadLocal.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  52377f16_e357_e793_1546_383fbe5cdcf2["removeAll()"]
  dc6344c3_40c4_25b8_2eda_8ec5bb8163b3["FastThreadLocal"]
  52377f16_e357_e793_1546_383fbe5cdcf2 -->|defined in| dc6344c3_40c4_25b8_2eda_8ec5bb8163b3
  5a30b348_866f_4505_5309_1f89c39f3785["remove()"]
  52377f16_e357_e793_1546_383fbe5cdcf2 -->|calls| 5a30b348_866f_4505_5309_1f89c39f3785
  style 52377f16_e357_e793_1546_383fbe5cdcf2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/FastThreadLocal.java lines 54–74

    public static void removeAll() {
        InternalThreadLocalMap threadLocalMap = InternalThreadLocalMap.getIfSet();
        if (threadLocalMap == null) {
            return;
        }

        try {
            Object v = threadLocalMap.indexedVariable(VARIABLES_TO_REMOVE_INDEX);
            if (v != null && v != InternalThreadLocalMap.UNSET) {
                @SuppressWarnings("unchecked")
                Set<FastThreadLocal<?>> variablesToRemove = (Set<FastThreadLocal<?>>) v;
                FastThreadLocal<?>[] variablesToRemoveArray =
                        variablesToRemove.toArray(new FastThreadLocal[0]);
                for (FastThreadLocal<?> tlv: variablesToRemoveArray) {
                    tlv.remove(threadLocalMap);
                }
            }
        } finally {
            InternalThreadLocalMap.remove();
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does removeAll() do?
removeAll() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/FastThreadLocal.java.
Where is removeAll() defined?
removeAll() is defined in common/src/main/java/io/netty/util/concurrent/FastThreadLocal.java at line 54.
What does removeAll() call?
removeAll() calls 1 function(s): remove.

Analyze Your Own Codebase

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

Try Supermodel Free