Home / Function/ onRelease() — netty Function Reference

onRelease() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a02995fd_2479_0eaa_4f06_b3f208a28799["onRelease()"]
  f1cdd349_c4cb_5c01_45cf_5cb7bb37814d["Chunk"]
  a02995fd_2479_0eaa_4f06_b3f208a28799 -->|defined in| f1cdd349_c4cb_5c01_45cf_5cb7bb37814d
  98785a74_86ed_ffcc_d613_fd55a1cb34e4["deallocate()"]
  98785a74_86ed_ffcc_d613_fd55a1cb34e4 -->|calls| a02995fd_2479_0eaa_4f06_b3f208a28799
  style a02995fd_2479_0eaa_4f06_b3f208a28799 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 1164–1173

        private void onRelease() {
            if (PlatformDependent.isJfrEnabled() && FreeChunkEvent.isEventEnabled()) {
                FreeChunkEvent event = new FreeChunkEvent();
                if (event.shouldCommit()) {
                    event.fill(this, AdaptiveByteBufAllocator.class);
                    event.pooled = pooled;
                    event.commit();
                }
            }
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does onRelease() do?
onRelease() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java.
Where is onRelease() defined?
onRelease() is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 1164.
What calls onRelease()?
onRelease() 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