onReallocateBuffer() — netty Function Reference
Architecture documentation for the onReallocateBuffer() function in PooledByteBufAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD dd8c2dd7_5639_2dfc_65e8_2ae553755fa9["onReallocateBuffer()"] f5ea31b4_1e4c_94f0_32cf_d4ab3e538b0a["PooledByteBufAllocator"] dd8c2dd7_5639_2dfc_65e8_2ae553755fa9 -->|defined in| f5ea31b4_1e4c_94f0_32cf_d4ab3e538b0a style dd8c2dd7_5639_2dfc_65e8_2ae553755fa9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java lines 826–835
static void onReallocateBuffer(AbstractByteBuf buf, int newCapacity) {
if (PlatformDependent.isJfrEnabled() && ReallocateBufferEvent.isEventEnabled()) {
ReallocateBufferEvent event = new ReallocateBufferEvent();
if (event.shouldCommit()) {
event.fill(buf, PooledByteBufAllocator.class);
event.newCapacity = newCapacity;
event.commit();
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does onReallocateBuffer() do?
onReallocateBuffer() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java.
Where is onReallocateBuffer() defined?
onReallocateBuffer() is defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java at line 826.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free