CleanableDirectBuffer() — netty Function Reference
Architecture documentation for the CleanableDirectBuffer() function in CleanerJava25.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e255d12a_e22f_df1a_aceb_4df26362cfcd["CleanableDirectBuffer()"] 7ab188e3_8847_b494_ece0_39be8ad2e276["CleanerJava25"] e255d12a_e22f_df1a_aceb_4df26362cfcd -->|defined in| 7ab188e3_8847_b494_ece0_39be8ad2e276 style e255d12a_e22f_df1a_aceb_4df26362cfcd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/CleanerJava25.java lines 169–179
@SuppressWarnings("OverlyStrongTypeCast") // The cast is needed for 'invokeExact' semantics.
@Override
public CleanableDirectBuffer allocate(int capacity) {
try {
return (CleanableDirectBufferImpl) INVOKE_ALLOCATOR.invokeExact(capacity);
} catch (RuntimeException e) {
throw e; // Propagate the runtime exceptions that the Arena would normally throw.
} catch (Throwable e) {
throw new IllegalStateException("Unexpected allocation exception", e);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does CleanableDirectBuffer() do?
CleanableDirectBuffer() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/CleanerJava25.java.
Where is CleanableDirectBuffer() defined?
CleanableDirectBuffer() is defined in common/src/main/java/io/netty/util/internal/CleanerJava25.java at line 169.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free