recycle() — netty Function Reference
Architecture documentation for the recycle() function in RecyclerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 43ab40f6_52e7_0fe9_a79f_220021939268["recycle()"] 808b4957_9af3_d3bb_4ae3_f2c2b5562d0f["HandledObject"] 43ab40f6_52e7_0fe9_a79f_220021939268 -->|defined in| 808b4957_9af3_d3bb_4ae3_f2c2b5562d0f 7e725c35_0fe0_4456_3792_5bd564cc5c6c["testThreadCanBeCollectedEvenIfHandledObjectIsReferenced()"] 7e725c35_0fe0_4456_3792_5bd564cc5c6c -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 1ad6ca0d_23ae_2354_dd38_0f17e894c21c["testMultipleRecycle()"] 1ad6ca0d_23ae_2354_dd38_0f17e894c21c -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 0f15da7a_0cc5_d986_0be6_419438d2b63c["testUnguardedMultipleRecycle()"] 0f15da7a_0cc5_d986_0be6_419438d2b63c -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 70ad432e_c700_e50e_aafa_660bf5f58122["testMultipleRecycleAtDifferentThread()"] 70ad432e_c700_e50e_aafa_660bf5f58122 -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 d5663849_f9de_1a49_00a8_bc360fe5bd24["testMultipleRecycleAtDifferentThreadRacing()"] d5663849_f9de_1a49_00a8_bc360fe5bd24 -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 4c48b5d2_b8b5_b740_21d9_b4564924f5a5["testMultipleRecycleRacing()"] 4c48b5d2_b8b5_b740_21d9_b4564924f5a5 -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 22b5838f_ef41_7f0e_e808_78969bb0f5f2["testRecycle()"] 22b5838f_ef41_7f0e_e808_78969bb0f5f2 -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 2e4cb8b6_fbe8_043b_a4d2_d8f7f4a943b5["testRecycleDisable()"] 2e4cb8b6_fbe8_043b_a4d2_d8f7f4a943b5 -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 ab35b852_efb1_f6a1_65ab_0386b884effc["testRecycleDisableDrop()"] ab35b852_efb1_f6a1_65ab_0386b884effc -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 60b90f71_7fad_ffbb_3cbf_026c2aaef53c["testMaxCapacity()"] 60b90f71_7fad_ffbb_3cbf_026c2aaef53c -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 d56f21e1_98b4_0a44_24ff_56df7b6fb595["testRecycleAtDifferentThread()"] d56f21e1_98b4_0a44_24ff_56df7b6fb595 -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 3bd7460f_f143_75fb_21d2_0c342e7eabc0["testRecycleAtTwoThreadsMulti()"] 3bd7460f_f143_75fb_21d2_0c342e7eabc0 -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 0ff1a525_e5f2_e94f_bf70_1258224832f1["testMaxCapacityWithRecycleAtDifferentThread()"] 0ff1a525_e5f2_e94f_bf70_1258224832f1 -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268 style 43ab40f6_52e7_0fe9_a79f_220021939268 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/RecyclerTest.java lines 611–613
void recycle() {
handle.recycle(this);
}
Domain
Subdomains
Called By
- testDiscardingExceedingElementsWithRecycleAtDifferentThread()
- testMaxCapacity()
- testMaxCapacityWithRecycleAtDifferentThread()
- testMultipleRecycle()
- testMultipleRecycleAtDifferentThread()
- testMultipleRecycleAtDifferentThreadRacing()
- testMultipleRecycleRacing()
- testRecycle()
- testRecycleAtDifferentThread()
- testRecycleAtTwoThreadsMulti()
- testRecycleDisable()
- testRecycleDisableDrop()
- testThreadCanBeCollectedEvenIfHandledObjectIsReferenced()
- testUnguardedMultipleRecycle()
Source
Frequently Asked Questions
What does recycle() do?
recycle() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/RecyclerTest.java.
Where is recycle() defined?
recycle() is defined in common/src/test/java/io/netty/util/RecyclerTest.java at line 611.
What calls recycle()?
recycle() is called by 14 function(s): testDiscardingExceedingElementsWithRecycleAtDifferentThread, testMaxCapacity, testMaxCapacityWithRecycleAtDifferentThread, testMultipleRecycle, testMultipleRecycleAtDifferentThread, testMultipleRecycleAtDifferentThreadRacing, testMultipleRecycleRacing, testRecycle, and 6 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free