release() — netty Function Reference
Architecture documentation for the release() function in Recycler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9336dc88_2540_a5d2_ab54_05caa588e0a7["release()"] 35ba43da_5a98_091e_3833_ccfc393fe9ff["LocalPool"] 9336dc88_2540_a5d2_ab54_05caa588e0a7 -->|defined in| 35ba43da_5a98_091e_3833_ccfc393fe9ff 45ebb211_9894_1f8d_b40e_44c368c6b0a5["recycle()"] 45ebb211_9894_1f8d_b40e_44c368c6b0a5 -->|calls| 9336dc88_2540_a5d2_ab54_05caa588e0a7 60605376_d032_89a9_ec3c_133c6dd59a78["unguardedRecycle()"] 60605376_d032_89a9_ec3c_133c6dd59a78 -->|calls| 9336dc88_2540_a5d2_ab54_05caa588e0a7 1643de33_e9da_0b4c_a298_9df95940fc8a["recycle()"] 1643de33_e9da_0b4c_a298_9df95940fc8a -->|calls| 9336dc88_2540_a5d2_ab54_05caa588e0a7 27b6de6e_40cd_477c_35e4_5d488668cbb6["unguardedRecycle()"] 27b6de6e_40cd_477c_35e4_5d488668cbb6 -->|calls| 9336dc88_2540_a5d2_ab54_05caa588e0a7 740364ab_7b92_506a_a86c_da478e9fbb53["isTerminated()"] 9336dc88_2540_a5d2_ab54_05caa588e0a7 -->|calls| 740364ab_7b92_506a_a86c_da478e9fbb53 77b5d948_e88e_4b7a_2631_d9a53d4ddbba["relaxedOffer()"] 9336dc88_2540_a5d2_ab54_05caa588e0a7 -->|calls| 77b5d948_e88e_4b7a_2631_d9a53d4ddbba style 9336dc88_2540_a5d2_ab54_05caa588e0a7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/Recycler.java lines 572–586
protected final void release(H handle) {
Thread owner = this.owner;
if (owner != null && Thread.currentThread() == owner && batchSize < batch.length) {
batch[batchSize] = handle;
batchSize++;
} else if (owner != null && isTerminated(owner)) {
pooledHandles = null;
this.owner = null;
} else {
MessagePassingQueue<H> handles = pooledHandles;
if (handles != null) {
handles.relaxedOffer(handle);
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does release() do?
release() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/Recycler.java.
Where is release() defined?
release() is defined in common/src/main/java/io/netty/util/Recycler.java at line 572.
What does release() call?
release() calls 2 function(s): isTerminated, relaxedOffer.
What calls release()?
release() is called by 4 function(s): recycle, recycle, unguardedRecycle, unguardedRecycle.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free