Home / Function/ deallocate() — netty Function Reference

deallocate() — netty Function Reference

Architecture documentation for the deallocate() function in ByteBufUtil.java from the netty codebase.

Function java Buffer Telemetry calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  c478af19_45e4_331d_99a3_e531e0dae028["deallocate()"]
  3af531be_852c_d7f9_0595_e937132be83e["ThreadLocalDirectByteBuf"]
  c478af19_45e4_331d_99a3_e531e0dae028 -->|defined in| 3af531be_852c_d7f9_0595_e937132be83e
  03a483f8_d0b7_9d69_421a_195837dc26a3["deallocate()"]
  03a483f8_d0b7_9d69_421a_195837dc26a3 -->|calls| c478af19_45e4_331d_99a3_e531e0dae028
  03a483f8_d0b7_9d69_421a_195837dc26a3["deallocate()"]
  c478af19_45e4_331d_99a3_e531e0dae028 -->|calls| 03a483f8_d0b7_9d69_421a_195837dc26a3
  style c478af19_45e4_331d_99a3_e531e0dae028 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/ByteBufUtil.java lines 1758–1766

        @Override
        protected void deallocate() {
            if (capacity() > THREAD_LOCAL_BUFFER_SIZE) {
                super.deallocate();
            } else {
                clear();
                handle.unguardedRecycle(this);
            }
        }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does deallocate() do?
deallocate() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/ByteBufUtil.java.
Where is deallocate() defined?
deallocate() is defined in buffer/src/main/java/io/netty/buffer/ByteBufUtil.java at line 1758.
What does deallocate() call?
deallocate() calls 1 function(s): deallocate.
What calls deallocate()?
deallocate() is called by 1 function(s): deallocate.

Analyze Your Own Codebase

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

Try Supermodel Free