check() — netty Function Reference
Architecture documentation for the check() function in LeakPresenceDetector.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 95093f73_e143_2bf9_5d95_2adba188c280["check()"] 3dc7780b_2502_84f5_0a0e_ccc5113b7e2d["ResourceScope"] 95093f73_e143_2bf9_5d95_2adba188c280 -->|defined in| 3dc7780b_2502_84f5_0a0e_ccc5113b7e2d 9091c485_77ea_292e_4e8a_05c5d72a80c3["check()"] 9091c485_77ea_292e_4e8a_05c5d72a80c3 -->|calls| 95093f73_e143_2bf9_5d95_2adba188c280 38dcc791_90be_c5aa_7d59_e5d118926a5a["close()"] 38dcc791_90be_c5aa_7d59_e5d118926a5a -->|calls| 95093f73_e143_2bf9_5d95_2adba188c280 9091c485_77ea_292e_4e8a_05c5d72a80c3["check()"] 95093f73_e143_2bf9_5d95_2adba188c280 -->|calls| 9091c485_77ea_292e_4e8a_05c5d72a80c3 style 95093f73_e143_2bf9_5d95_2adba188c280 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/LeakPresenceDetector.java lines 282–309
void check() {
long n = openResourceCounter.sumThenReset();
if (n != 0) {
StringBuilder msg = new StringBuilder("Possible memory leak detected for resource scope '")
.append(name).append("'. ");
if (n < 0) {
msg.append("Resource count was negative: A resource previously reported as a leak was released " +
"after all. Please ensure that that resource is released before its test finishes.");
throw new IllegalStateException(msg.toString());
}
if (TRACK_CREATION_STACK) {
msg.append("Creation stack traces:");
IllegalStateException ise = new IllegalStateException(msg.toString());
int i = 0;
for (Throwable t : creationStacks.values()) {
ise.addSuppressed(t);
if (i++ > 5) {
break;
}
}
creationStacks.clear();
throw ise;
}
msg.append("Please use paranoid leak detection to get more information, or set " +
"-D" + TRACK_CREATION_STACK_PROPERTY + "=true");
throw new IllegalStateException(msg.toString());
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does check() do?
check() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/LeakPresenceDetector.java.
Where is check() defined?
check() is defined in common/src/main/java/io/netty/util/LeakPresenceDetector.java at line 282.
What does check() call?
check() calls 1 function(s): check.
What calls check()?
check() is called by 2 function(s): check, close.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free