R() — netty Function Reference
Architecture documentation for the R() function in LeakPresenceDetector.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6e240761_5949_e8d5_e183_dc6f994cf447["R()"] c3f8e874_7121_5232_86be_a0f7230a975e["LeakPresenceDetector"] 6e240761_5949_e8d5_e183_dc6f994cf447 -->|defined in| c3f8e874_7121_5232_86be_a0f7230a975e e98e1d57_b1eb_b61a_2695_0603cacaff79["inStaticInitializerSlow()"] 6e240761_5949_e8d5_e183_dc6f994cf447 -->|calls| e98e1d57_b1eb_b61a_2695_0603cacaff79 style 6e240761_5949_e8d5_e183_dc6f994cf447 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/LeakPresenceDetector.java lines 121–135
public static <R> R staticInitializer(Supplier<R> supplier) {
if (!inStaticInitializerSlow(Thread.currentThread().getStackTrace())) {
throw new IllegalStateException("Not in static initializer.");
}
synchronized (LeakPresenceDetector.class) {
staticInitializerCount++;
}
try {
return supplier.get();
} finally {
synchronized (LeakPresenceDetector.class) {
staticInitializerCount--;
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does R() do?
R() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/LeakPresenceDetector.java.
Where is R() defined?
R() is defined in common/src/main/java/io/netty/util/LeakPresenceDetector.java at line 121.
What does R() call?
R() calls 1 function(s): inStaticInitializerSlow.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free