Home / Function/ deallocate() — netty Function Reference

deallocate() — netty Function Reference

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

Function java Buffer Telemetry calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  d2729de0_b37c_7907_bc82_c5f01b36a3cd["deallocate()"]
  e9381b1a_dc06_843c_be7e_5e0eddee4a3a["AdaptiveByteBuf"]
  d2729de0_b37c_7907_bc82_c5f01b36a3cd -->|defined in| e9381b1a_dc06_843c_be7e_5e0eddee4a3a
  98785a74_86ed_ffcc_d613_fd55a1cb34e4["deallocate()"]
  98785a74_86ed_ffcc_d613_fd55a1cb34e4 -->|calls| d2729de0_b37c_7907_bc82_c5f01b36a3cd
  98785a74_86ed_ffcc_d613_fd55a1cb34e4["deallocate()"]
  d2729de0_b37c_7907_bc82_c5f01b36a3cd -->|calls| 98785a74_86ed_ffcc_d613_fd55a1cb34e4
  f1f91104_8721_329c_3138_235bb4f03863["releaseSegment()"]
  d2729de0_b37c_7907_bc82_c5f01b36a3cd -->|calls| f1f91104_8721_329c_3138_235bb4f03863
  style d2729de0_b37c_7907_bc82_c5f01b36a3cd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 2038–2055

        @Override
        protected void deallocate() {
            if (PlatformDependent.isJfrEnabled() && FreeBufferEvent.isEventEnabled()) {
                FreeBufferEvent event = new FreeBufferEvent();
                if (event.shouldCommit()) {
                    event.fill(this, AdaptiveByteBufAllocator.class);
                    event.commit();
                }
            }

            if (chunk != null) {
                chunk.releaseSegment(startIndex, maxFastCapacity);
            }
            tmpNioBuf = null;
            chunk = null;
            rootParent = null;
            handle.unguardedRecycle(this);
        }

Domain

Subdomains

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/AdaptivePoolingAllocator.java.
Where is deallocate() defined?
deallocate() is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 2038.
What does deallocate() call?
deallocate() calls 2 function(s): deallocate, releaseSegment.
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