testMultipleSetRemove() — netty Function Reference
Architecture documentation for the testMultipleSetRemove() function in FastThreadLocalTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 74917990_4011_56b2_a6db_1ef007f7ba9f["testMultipleSetRemove()"] c9cb652b_4141_8af2_1f8b_c47765bb30f9["FastThreadLocalTest"] 74917990_4011_56b2_a6db_1ef007f7ba9f -->|defined in| c9cb652b_4141_8af2_1f8b_c47765bb30f9 7fb6cd58_f112_73b3_6216_2819f285c975["run()"] 74917990_4011_56b2_a6db_1ef007f7ba9f -->|calls| 7fb6cd58_f112_73b3_6216_2819f285c975 style 74917990_4011_56b2_a6db_1ef007f7ba9f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java lines 131–156
@Test
public void testMultipleSetRemove() throws Exception {
final FastThreadLocal<String> threadLocal = new FastThreadLocal<String>();
final Runnable runnable = new Runnable() {
@Override
public void run() {
threadLocal.set("1");
threadLocal.remove();
threadLocal.set("2");
threadLocal.remove();
}
};
final int sizeWhenStart = ObjectCleaner.getLiveSetCount();
Thread thread = new Thread(runnable);
thread.start();
thread.join();
assertEquals(0, ObjectCleaner.getLiveSetCount() - sizeWhenStart);
Thread thread2 = new Thread(runnable);
thread2.start();
thread2.join();
assertEquals(0, ObjectCleaner.getLiveSetCount() - sizeWhenStart);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testMultipleSetRemove() do?
testMultipleSetRemove() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java.
Where is testMultipleSetRemove() defined?
testMultipleSetRemove() is defined in common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java at line 131.
What does testMultipleSetRemove() call?
testMultipleSetRemove() calls 1 function(s): run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free