Home / Function/ onDeallocateChunk() — netty Function Reference

onDeallocateChunk() — netty Function Reference

Architecture documentation for the onDeallocateChunk() function in PooledByteBufAllocator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5f9c74a9_b99e_bf5c_eacc_0db3fc1c294d["onDeallocateChunk()"]
  f5ea31b4_1e4c_94f0_32cf_d4ab3e538b0a["PooledByteBufAllocator"]
  5f9c74a9_b99e_bf5c_eacc_0db3fc1c294d -->|defined in| f5ea31b4_1e4c_94f0_32cf_d4ab3e538b0a
  style 5f9c74a9_b99e_bf5c_eacc_0db3fc1c294d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java lines 849–858

    static void onDeallocateChunk(ChunkInfo chunk, boolean pooled) {
        if (PlatformDependent.isJfrEnabled() && FreeChunkEvent.isEventEnabled()) {
            FreeChunkEvent event = new FreeChunkEvent();
            if (event.shouldCommit()) {
                event.fill(chunk, PooledByteBufAllocator.class);
                event.pooled = pooled;
                event.commit();
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does onDeallocateChunk() do?
onDeallocateChunk() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java.
Where is onDeallocateChunk() defined?
onDeallocateChunk() is defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java at line 849.

Analyze Your Own Codebase

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

Try Supermodel Free