expectedUsedMemoryAfterRelease() — netty Function Reference
Architecture documentation for the expectedUsedMemoryAfterRelease() function in PooledByteBufAllocatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f9a43daa_4d60_3f48_fc3c_e267da524d17["expectedUsedMemoryAfterRelease()"] f8855572_2abf_1bf6_a32b_5cf6d1cf4947["PooledByteBufAllocatorTest"] f9a43daa_4d60_3f48_fc3c_e267da524d17 -->|defined in| f8855572_2abf_1bf6_a32b_5cf6d1cf4947 64ff1dc7_f2b1_46b9_58e9_cc82cd89711a["testUsedDirectMemory()"] 64ff1dc7_f2b1_46b9_58e9_cc82cd89711a -->|calls| f9a43daa_4d60_3f48_fc3c_e267da524d17 c7ff040a_7ac5_23ee_ceec_263cfa589344["testUsedHeapMemory()"] c7ff040a_7ac5_23ee_ceec_263cfa589344 -->|calls| f9a43daa_4d60_3f48_fc3c_e267da524d17 style f9a43daa_4d60_3f48_fc3c_e267da524d17 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java lines 74–80
@Override
protected long expectedUsedMemoryAfterRelease(PooledByteBufAllocator allocator, int capacity) {
// This is the case as allocations will start in qInit and chunks in qInit will never be released until
// these are moved to q000.
// See https://www.bsdcan.org/2006/papers/jemalloc.pdf
return allocator.metric().chunkSize();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does expectedUsedMemoryAfterRelease() do?
expectedUsedMemoryAfterRelease() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java.
Where is expectedUsedMemoryAfterRelease() defined?
expectedUsedMemoryAfterRelease() is defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java at line 74.
What calls expectedUsedMemoryAfterRelease()?
expectedUsedMemoryAfterRelease() is called by 2 function(s): testUsedDirectMemory, testUsedHeapMemory.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free