Home / Function/ releaseFromMagazine() — netty Function Reference

releaseFromMagazine() — netty Function Reference

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

Function java Buffer Telemetry calls 3 called by 5

Entity Profile

Dependency Diagram

graph TD
  f4981826_99f5_bf62_b6e7_eb825c46476a["releaseFromMagazine()"]
  f1cdd349_c4cb_5c01_45cf_5cb7bb37814d["Chunk"]
  f4981826_99f5_bf62_b6e7_eb825c46476a -->|defined in| f1cdd349_c4cb_5c01_45cf_5cb7bb37814d
  2845f5ec_6a60_22de_f8d4_345bc5446f42["allocateWithoutLock()"]
  2845f5ec_6a60_22de_f8d4_345bc5446f42 -->|calls| f4981826_99f5_bf62_b6e7_eb825c46476a
  b550a3a7_b98a_e36b_d58d_413aa6587ed4["allocate()"]
  b550a3a7_b98a_e36b_d58d_413aa6587ed4 -->|calls| f4981826_99f5_bf62_b6e7_eb825c46476a
  0a745cad_53b5_e976_8e80_cfe56a86673e["restoreMagazineFreed()"]
  0a745cad_53b5_e976_8e80_cfe56a86673e -->|calls| f4981826_99f5_bf62_b6e7_eb825c46476a
  33bb02aa_95f4_9821_7021_dcda1b551bd1["transferToNextInLineOrRelease()"]
  33bb02aa_95f4_9821_7021_dcda1b551bd1 -->|calls| f4981826_99f5_bf62_b6e7_eb825c46476a
  700c009a_e442_12d4_0cb8_4fba0ab43bc1["free()"]
  700c009a_e442_12d4_0cb8_4fba0ab43bc1 -->|calls| f4981826_99f5_bf62_b6e7_eb825c46476a
  40e0c619_bcae_13c7_854d_c6e52c72f951["detachFromMagazine()"]
  f4981826_99f5_bf62_b6e7_eb825c46476a -->|calls| 40e0c619_bcae_13c7_854d_c6e52c72f951
  3e789ca7_f805_04a7_37bc_e818b4066279["offerToQueue()"]
  f4981826_99f5_bf62_b6e7_eb825c46476a -->|calls| 3e789ca7_f805_04a7_37bc_e818b4066279
  59c1d0ae_e507_0c96_51fa_359fe1b6411f["release()"]
  f4981826_99f5_bf62_b6e7_eb825c46476a -->|calls| 59c1d0ae_e507_0c96_51fa_359fe1b6411f
  style f4981826_99f5_bf62_b6e7_eb825c46476a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 1128–1137

        boolean releaseFromMagazine() {
            // Chunks can be reused before they become empty.
            // We can therefor put them in the shared queue as soon as the magazine is done with this chunk.
            Magazine mag = magazine;
            detachFromMagazine();
            if (!mag.offerToQueue(this)) {
                return release();
            }
            return false;
        }

Domain

Subdomains

Frequently Asked Questions

What does releaseFromMagazine() do?
releaseFromMagazine() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java.
Where is releaseFromMagazine() defined?
releaseFromMagazine() is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 1128.
What does releaseFromMagazine() call?
releaseFromMagazine() calls 3 function(s): detachFromMagazine, offerToQueue, release.
What calls releaseFromMagazine()?
releaseFromMagazine() is called by 5 function(s): allocate, allocateWithoutLock, free, restoreMagazineFreed, transferToNextInLineOrRelease.

Analyze Your Own Codebase

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

Try Supermodel Free