Interface AdaptivePoolingAllocator.ChunkController
- All Known Implementing Classes:
AdaptivePoolingAllocator.BuddyChunkController, AdaptivePoolingAllocator.SizeClassChunkController
- Enclosing class:
AdaptivePoolingAllocator
private static interface AdaptivePoolingAllocator.ChunkController
-
Method Summary
Modifier and TypeMethodDescriptionintcomputeBufferCapacity(int requestedSize, int maxCapacity, boolean isReallocation) Compute the "fast max capacity" value for the buffer.newChunkAllocation(int promptingSize, AdaptivePoolingAllocator.Magazine magazine) Allocate a newAdaptivePoolingAllocator.Chunkfor the givenAdaptivePoolingAllocator.Magazine.
-
Method Details
-
computeBufferCapacity
int computeBufferCapacity(int requestedSize, int maxCapacity, boolean isReallocation) Compute the "fast max capacity" value for the buffer. -
newChunkAllocation
AdaptivePoolingAllocator.Chunk newChunkAllocation(int promptingSize, AdaptivePoolingAllocator.Magazine magazine) Allocate a newAdaptivePoolingAllocator.Chunkfor the givenAdaptivePoolingAllocator.Magazine.
-