testNumThreadCachesAccountForDirectAndHeapArenas() — netty Function Reference
Architecture documentation for the testNumThreadCachesAccountForDirectAndHeapArenas() function in PooledByteBufAllocatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD be94b9d4_4e5e_4fba_7283_60b4185f4932["testNumThreadCachesAccountForDirectAndHeapArenas()"] f8855572_2abf_1bf6_a32b_5cf6d1cf4947["PooledByteBufAllocatorTest"] be94b9d4_4e5e_4fba_7283_60b4185f4932 -->|defined in| f8855572_2abf_1bf6_a32b_5cf6d1cf4947 4e681469_9c14_67cb_5890_46b5d4b12dd2["PooledByteBufAllocator()"] be94b9d4_4e5e_4fba_7283_60b4185f4932 -->|calls| 4e681469_9c14_67cb_5890_46b5d4b12dd2 style be94b9d4_4e5e_4fba_7283_60b4185f4932 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java lines 446–464
@Test
@Timeout(value = 3000, unit = MILLISECONDS)
public void testNumThreadCachesAccountForDirectAndHeapArenas() throws InterruptedException {
int numHeapArenas = 1;
final PooledByteBufAllocator allocator =
new PooledByteBufAllocator(numHeapArenas, 0, 8192, 1);
ThreadCache tcache0 = createNewThreadCache(allocator, false);
assertEquals(1, allocator.metric().numThreadLocalCaches());
ThreadCache tcache1 = createNewThreadCache(allocator, true);
assertEquals(2, allocator.metric().numThreadLocalCaches());
tcache0.destroy();
assertEquals(1, allocator.metric().numThreadLocalCaches());
tcache1.destroy();
assertEquals(0, allocator.metric().numThreadLocalCaches());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testNumThreadCachesAccountForDirectAndHeapArenas() do?
testNumThreadCachesAccountForDirectAndHeapArenas() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java.
Where is testNumThreadCachesAccountForDirectAndHeapArenas() defined?
testNumThreadCachesAccountForDirectAndHeapArenas() is defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java at line 446.
What does testNumThreadCachesAccountForDirectAndHeapArenas() call?
testNumThreadCachesAccountForDirectAndHeapArenas() calls 1 function(s): PooledByteBufAllocator.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free