performDirectAllocation() — netty Function Reference
Architecture documentation for the performDirectAllocation() function in ByteBufAllocatorAllocPatternBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fe84fc40_3a97_c97a_73cb_2217baa430ed["performDirectAllocation()"] 2b9d2c55_b3ab_2241_3c94_2c28d1742399["AllocationPatternState"] fe84fc40_3a97_c97a_73cb_2217baa430ed -->|defined in| 2b9d2c55_b3ab_2241_3c94_2c28d1742399 08c39d59_9fc8_19d0_9a47_4c56e7a2655c["setupAllocatorAndPollute()"] 08c39d59_9fc8_19d0_9a47_4c56e7a2655c -->|calls| fe84fc40_3a97_c97a_73cb_2217baa430ed 83b8f5ad_dc34_b057_6ee1_bb35f69b39e1["directAllocation()"] 83b8f5ad_dc34_b057_6ee1_bb35f69b39e1 -->|calls| fe84fc40_3a97_c97a_73cb_2217baa430ed eb3b24cc_32a0_7289_8880_2dc69bc0b4b8["getNextSizeIndex()"] fe84fc40_3a97_c97a_73cb_2217baa430ed -->|calls| eb3b24cc_32a0_7289_8880_2dc69bc0b4b8 bbe06704_584b_9c24_dc13_4fce32d179d4["getNextReleaseIndex()"] fe84fc40_3a97_c97a_73cb_2217baa430ed -->|calls| bbe06704_584b_9c24_dc13_4fce32d179d4 d17baac7_a97f_d30f_97ad_c7dad906b64b["release()"] fe84fc40_3a97_c97a_73cb_2217baa430ed -->|calls| d17baac7_a97f_d30f_97ad_c7dad906b64b style fe84fc40_3a97_c97a_73cb_2217baa430ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorAllocPatternBenchmark.java lines 132–143
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void performDirectAllocation() {
int size = sizes[getNextSizeIndex()];
int releaseIndex = getNextReleaseIndex();
ByteBuf[] buffers = this.buffers;
ByteBuf oldBuf = buffers[releaseIndex];
if (oldBuf != null) {
release(oldBuf);
}
ByteBuf newBuf = allocateDirect(allocator, size);
buffers[releaseIndex] = newBuf;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does performDirectAllocation() do?
performDirectAllocation() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorAllocPatternBenchmark.java.
Where is performDirectAllocation() defined?
performDirectAllocation() is defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorAllocPatternBenchmark.java at line 132.
What does performDirectAllocation() call?
performDirectAllocation() calls 3 function(s): getNextReleaseIndex, getNextSizeIndex, release.
What calls performDirectAllocation()?
performDirectAllocation() is called by 2 function(s): directAllocation, setupAllocatorAndPollute.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free