finalize() — netty Function Reference
Architecture documentation for the finalize() function in HashedWheelTimer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2887997e_69bc_6d87_5c4a_0b332570fab4["finalize()"] 0a75019c_ba28_3729_1e96_e0724c6ddc24["HashedWheelTimer"] 2887997e_69bc_6d87_5c4a_0b332570fab4 -->|defined in| 0a75019c_ba28_3729_1e96_e0724c6ddc24 style 2887997e_69bc_6d87_5c4a_0b332570fab4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/HashedWheelTimer.java lines 322–333
@Override
protected void finalize() throws Throwable {
try {
// This object is going to be GCed and it is assumed the ship has sailed to do a proper shutdown. If
// we have not yet shutdown then we want to make sure we decrement the active instance count.
if (WORKER_STATE_UPDATER.getAndSet(this, WORKER_STATE_SHUTDOWN) != WORKER_STATE_SHUTDOWN) {
INSTANCE_COUNTER.decrementAndGet();
}
} finally {
super.finalize();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does finalize() do?
finalize() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/HashedWheelTimer.java.
Where is finalize() defined?
finalize() is defined in common/src/main/java/io/netty/util/HashedWheelTimer.java at line 322.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free