testFastThreadLocalSize() — netty Function Reference
Architecture documentation for the testFastThreadLocalSize() function in FastThreadLocalTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2f988f0e_d63e_bc70_4126_903139ea3146["testFastThreadLocalSize()"] c9cb652b_4141_8af2_1f8b_c47765bb30f9["FastThreadLocalTest"] 2f988f0e_d63e_bc70_4126_903139ea3146 -->|defined in| c9cb652b_4141_8af2_1f8b_c47765bb30f9 style 2f988f0e_d63e_bc70_4126_903139ea3146 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java lines 397–428
@Test
public void testFastThreadLocalSize() throws Exception {
int originSize = FastThreadLocal.size();
assertTrue(originSize >= 0);
InternalThreadLocalMap.get();
assertEquals(originSize, FastThreadLocal.size());
new FastThreadLocal<Boolean>();
assertEquals(originSize, FastThreadLocal.size());
FastThreadLocal<Boolean> fst2 = new FastThreadLocal<Boolean>();
fst2.get();
assertEquals(1 + originSize, FastThreadLocal.size());
FastThreadLocal<Boolean> fst3 = new FastThreadLocal<Boolean>();
fst3.set(null);
assertEquals(2 + originSize, FastThreadLocal.size());
FastThreadLocal<Boolean> fst4 = new FastThreadLocal<Boolean>();
fst4.set(Boolean.TRUE);
assertEquals(3 + originSize, FastThreadLocal.size());
fst4.set(Boolean.TRUE);
assertEquals(3 + originSize, FastThreadLocal.size());
fst4.remove();
assertEquals(2 + originSize, FastThreadLocal.size());
FastThreadLocal.removeAll();
assertEquals(0, FastThreadLocal.size());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testFastThreadLocalSize() do?
testFastThreadLocalSize() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java.
Where is testFastThreadLocalSize() defined?
testFastThreadLocalSize() is defined in common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java at line 397.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free