run() — netty Function Reference
Architecture documentation for the run() function in PooledByteBufAllocatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cedeec8b_9344_3cef_05a1_e0c94d65820e["run()"] 6bb945aa_60fd_1a15_e603_8ad95417c6e9["AllocationThread"] cedeec8b_9344_3cef_05a1_e0c94d65820e -->|defined in| 6bb945aa_60fd_1a15_e603_8ad95417c6e9 158a4e7a_eea0_fa1f_3536_3e2c9a5517e8["testThreadCacheDestroyed()"] 158a4e7a_eea0_fa1f_3536_3e2c9a5517e8 -->|calls| cedeec8b_9344_3cef_05a1_e0c94d65820e a51cd1bd_b897_12ec_2936_0326c256d42f["ThreadCache()"] a51cd1bd_b897_12ec_2936_0326c256d42f -->|calls| cedeec8b_9344_3cef_05a1_e0c94d65820e 881526d6_e286_dda2_f6c0_74e4e0ad5742["testCapacityChangeDoesntThrowAssertionError()"] 881526d6_e286_dda2_f6c0_74e4e0ad5742 -->|calls| cedeec8b_9344_3cef_05a1_e0c94d65820e 75630b21_cf5b_0dec_6b14_64e015ce8b30["releaseBuffersAndCheckContent()"] cedeec8b_9344_3cef_05a1_e0c94d65820e -->|calls| 75630b21_cf5b_0dec_6b14_64e015ce8b30 style cedeec8b_9344_3cef_05a1_e0c94d65820e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java lines 620–642
@Override
public void run() {
try {
int idx = 0;
while (finish.get() == null) {
for (int i = 0; i < 10; i++) {
int len = ALLOCATION_SIZES[Math.abs(idx++ % ALLOCATION_SIZES.length)];
ByteBuf buf = allocator.directBuffer(len, Integer.MAX_VALUE);
assertEquals(len, buf.writableBytes());
while (buf.isWritable()) {
buf.writeByte(i);
}
buffers.offer(buf);
}
releaseBuffersAndCheckContent();
}
} catch (Throwable cause) {
finish.set(cause);
} finally {
releaseBuffersAndCheckContent();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does run() do?
run() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java.
Where is run() defined?
run() is defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java at line 620.
What does run() call?
run() calls 1 function(s): releaseBuffersAndCheckContent.
What calls run()?
run() is called by 3 function(s): ThreadCache, testCapacityChangeDoesntThrowAssertionError, testThreadCacheDestroyed.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free