AdaptivePoolingAllocator() — netty Function Reference
Architecture documentation for the AdaptivePoolingAllocator() function in AdaptivePoolingAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cc6da6d1_4687_b652_19f1_566a14b3c36b["AdaptivePoolingAllocator()"] 9bc56cad_0c0c_4043_82ba_cb42dfea6004["AdaptivePoolingAllocator"] cc6da6d1_4687_b652_19f1_566a14b3c36b -->|defined in| 9bc56cad_0c0c_4043_82ba_cb42dfea6004 b683fc3d_12e9_93d8_78a7_c37649de3767["createMagazineGroupSizeClasses()"] cc6da6d1_4687_b652_19f1_566a14b3c36b -->|calls| b683fc3d_12e9_93d8_78a7_c37649de3767 02a76ead_33d8_cfe3_4978_8b372c856ad7["MagazineGroup()"] cc6da6d1_4687_b652_19f1_566a14b3c36b -->|calls| 02a76ead_33d8_cfe3_4978_8b372c856ad7 08459dfe_dddb_9dbd_ad3a_4497f81d4b9e["free()"] cc6da6d1_4687_b652_19f1_566a14b3c36b -->|calls| 08459dfe_dddb_9dbd_ad3a_4497f81d4b9e style cc6da6d1_4687_b652_19f1_566a14b3c36b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 190–216
AdaptivePoolingAllocator(ChunkAllocator chunkAllocator, boolean useCacheForNonEventLoopThreads) {
this.chunkAllocator = ObjectUtil.checkNotNull(chunkAllocator, "chunkAllocator");
chunkRegistry = new ChunkRegistry();
sizeClassedMagazineGroups = createMagazineGroupSizeClasses(this, false);
largeBufferMagazineGroup = new MagazineGroup(
this, chunkAllocator, new BuddyChunkManagementStrategy(), false);
boolean disableThreadLocalGroups = IS_LOW_MEM && DISABLE_THREAD_LOCAL_MAGAZINES_ON_LOW_MEM;
threadLocalGroup = disableThreadLocalGroups ? null : new FastThreadLocal<MagazineGroup[]>() {
@Override
protected MagazineGroup[] initialValue() {
if (useCacheForNonEventLoopThreads || ThreadExecutorMap.currentExecutor() != null) {
return createMagazineGroupSizeClasses(AdaptivePoolingAllocator.this, true);
}
return null;
}
@Override
protected void onRemoval(final MagazineGroup[] groups) throws Exception {
if (groups != null) {
for (MagazineGroup group : groups) {
group.free();
}
}
}
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AdaptivePoolingAllocator() do?
AdaptivePoolingAllocator() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java.
Where is AdaptivePoolingAllocator() defined?
AdaptivePoolingAllocator() is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 190.
What does AdaptivePoolingAllocator() call?
AdaptivePoolingAllocator() calls 3 function(s): MagazineGroup, createMagazineGroupSizeClasses, free.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free