Home / Function/ restoreMagazineFreed() — netty Function Reference

restoreMagazineFreed() — netty Function Reference

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

Function java Buffer Telemetry calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  0a745cad_53b5_e976_8e80_cfe56a86673e["restoreMagazineFreed()"]
  03ccb368_d6fc_bee6_64d5_0e674ae8c01f["Magazine"]
  0a745cad_53b5_e976_8e80_cfe56a86673e -->|defined in| 03ccb368_d6fc_bee6_64d5_0e674ae8c01f
  2845f5ec_6a60_22de_f8d4_345bc5446f42["allocateWithoutLock()"]
  2845f5ec_6a60_22de_f8d4_345bc5446f42 -->|calls| 0a745cad_53b5_e976_8e80_cfe56a86673e
  b550a3a7_b98a_e36b_d58d_413aa6587ed4["allocate()"]
  b550a3a7_b98a_e36b_d58d_413aa6587ed4 -->|calls| 0a745cad_53b5_e976_8e80_cfe56a86673e
  700c009a_e442_12d4_0cb8_4fba0ab43bc1["free()"]
  700c009a_e442_12d4_0cb8_4fba0ab43bc1 -->|calls| 0a745cad_53b5_e976_8e80_cfe56a86673e
  f4981826_99f5_bf62_b6e7_eb825c46476a["releaseFromMagazine()"]
  0a745cad_53b5_e976_8e80_cfe56a86673e -->|calls| f4981826_99f5_bf62_b6e7_eb825c46476a
  style 0a745cad_53b5_e976_8e80_cfe56a86673e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 997–1003

        private void restoreMagazineFreed() {
            Chunk next = NEXT_IN_LINE.getAndSet(this, MAGAZINE_FREED);
            if (next != null && next != MAGAZINE_FREED) {
                // A chunk snuck in through a race. Release it after restoring MAGAZINE_FREED state.
                next.releaseFromMagazine();
            }
        }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free