finalize() — netty Function Reference
Architecture documentation for the finalize() function in PoolThreadCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6a490f6b_0a0e_531d_db52_9bb29522c8ab["finalize()"] 2da6a301_6e89_e4ee_919c_feaf2800852b["FreeOnFinalize"] 6a490f6b_0a0e_531d_db52_9bb29522c8ab -->|defined in| 2da6a301_6e89_e4ee_919c_feaf2800852b 67fe01c2_aedc_a81c_c637_b03b96610998["free()"] 6a490f6b_0a0e_531d_db52_9bb29522c8ab -->|calls| 67fe01c2_aedc_a81c_c637_b03b96610998 style 6a490f6b_0a0e_531d_db52_9bb29522c8ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolThreadCache.java lines 483–497
@SuppressWarnings({"FinalizeDeclaration", "deprecation"})
@Override
protected void finalize() throws Throwable {
try {
PoolThreadCache cache = this.cache;
// this can race with a non-finalizer thread calling free: regardless who wins, the cache will be
// null out
this.cache = null;
if (cache != null) {
cache.free(true);
}
} finally {
super.finalize();
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does finalize() do?
finalize() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java.
Where is finalize() defined?
finalize() is defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java at line 483.
What does finalize() call?
finalize() calls 1 function(s): free.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free