| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| private static class | PoolThreadCache.
Cache used for buffers which are backed by NORMAL size. |
| private static class | PoolThreadCache.
Cache used for buffers which are backed by SMALL size. |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final PoolArena | |
| pack-priv final AtomicInteger | |
| private final int | |
| private static final int | |
| private static final InternalLogger | |
| private final PoolThreadCache. | |
| private final PoolThreadCache. |
| Access | Constructor and Description |
|---|---|
| pack-priv | PoolThreadCache(PoolArena arena, int smallCacheSize, int normalCacheSize, int maxCachedBufferCapacity, int freeSweepAllocationThreshold)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| private UntetheredMemory | |
| pack-priv UntetheredMemory | allocateNormal(PoolArena area, int size, int sizeIdx)
Try to allocate a normal buffer out of the cache. |
| pack-priv UntetheredMemory | |
| private PoolThreadCache. | |
| private static PoolThreadCache. | |
| private PoolThreadCache. | |
| private PoolThreadCache. | |
| private static PoolThreadCache. | |
| private static PoolThreadCache. | |
| pack-priv void | free()
Should be called if the Thread that uses this cache is about to exist to release resources out of the cache |
| private static int | |
| private static int | |
| pack-priv PoolArena | |
| pack-priv static int | |
| pack-priv void | |
| private static void | |
| private static void |
| allocations | back to summary |
|---|---|
| private int allocations | |
| arena | back to summary |
|---|---|
| private final PoolArena arena | |
| arenaReferenceCounter | back to summary |
|---|---|
| pack-priv final AtomicInteger arenaReferenceCounter | |
| freeSweepAllocationThreshold | back to summary |
|---|---|
| private final int freeSweepAllocationThreshold | |
| INTEGER_SIZE_MINUS_ONE | back to summary |
|---|---|
| private static final int INTEGER_SIZE_MINUS_ONE | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| normalCaches | back to summary |
|---|---|
| private final PoolThreadCache. | |
| smallSubPageCaches | back to summary |
|---|---|
| private final PoolThreadCache. | |
| PoolThreadCache | back to summary |
|---|---|
| pack-priv PoolThreadCache(PoolArena arena, int smallCacheSize, int normalCacheSize, int maxCachedBufferCapacity, int freeSweepAllocationThreshold) | |
| add | back to summary |
|---|---|
| pack-priv boolean add(PoolArena area, PoolChunk chunk, long handle, int normCapacity, PoolArena. Add | |
| allocate | back to summary |
|---|---|
| private UntetheredMemory allocate(PoolThreadCache. | |
| allocateNormal | back to summary |
|---|---|
| pack-priv UntetheredMemory allocateNormal(PoolArena area, int size, int sizeIdx) Try to allocate a normal buffer out of the cache. Returns | |
| allocateSmall | back to summary |
|---|---|
| pack-priv UntetheredMemory allocateSmall(int size, int sizeIdx) Try to allocate a small buffer out of the cache. Returns | |
| cache | back to summary |
|---|---|
| private PoolThreadCache. | |
| cache | back to summary |
|---|---|
| private static PoolThreadCache. | |
| cacheForNormal | back to summary |
|---|---|
| private PoolThreadCache. | |
| cacheForSmall | back to summary |
|---|---|
| private PoolThreadCache. | |
| createNormalCaches | back to summary |
|---|---|
| private static PoolThreadCache. | |
| createSubPageCaches | back to summary |
|---|---|
| private static PoolThreadCache. | |
| free | back to summary |
|---|---|
| pack-priv void free() Should be called if the Thread that uses this cache is about to exist to release resources out of the cache | |
| free | back to summary |
|---|---|
| private static int free(PoolThreadCache. | |
| free | back to summary |
|---|---|
| private static int free(PoolThreadCache. | |
| getArena | back to summary |
|---|---|
| pack-priv PoolArena getArena() | |
| log2 | back to summary |
|---|---|
| pack-priv static int log2(int val) | |
| trim | back to summary |
|---|---|
| pack-priv void trim() | |
| trim | back to summary |
|---|---|
| private static void trim(PoolThreadCache. | |
| trim | back to summary |
|---|---|
| private static void trim(PoolThreadCache. | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final Queue | |
| private static final ObjectPool | |
| private final int | |
| private final PoolArena. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | |
| public final UntetheredMemory | allocate(int size, PoolThreadCache threadCache)
Allocate something out of the cache if possible and remove the entry from the cache. |
| protected abstract UntetheredMemory | allocBuf(PoolChunk chunk, long handle, int size, PoolThreadCache threadCache)
Allocate a new |
| public final int | |
| private int | |
| private void | |
| private static PoolThreadCache. | |
| public final void |
| allocations | back to summary |
|---|---|
| private int allocations | |
| queue | back to summary |
|---|---|
| private final Queue<PoolThreadCache. | |
| RECYCLER | back to summary |
|---|---|
| private static final ObjectPool<PoolThreadCache. | |
| size | back to summary |
|---|---|
| private final int size | |
| sizeClass | back to summary |
|---|---|
| private final PoolArena. | |
| MemoryRegionCache | back to summary |
|---|---|
| pack-priv MemoryRegionCache(int size, PoolArena. | |
| add | back to summary |
|---|---|
| public final boolean add(PoolChunk chunk, long handle, int normCapacity) Add to cache if not already full. | |
| allocate | back to summary |
|---|---|
| public final UntetheredMemory allocate(int size, PoolThreadCache threadCache) Allocate something out of the cache if possible and remove the entry from the cache. | |
| allocBuf | back to summary |
|---|---|
| protected abstract UntetheredMemory allocBuf(PoolChunk chunk, long handle, int size, PoolThreadCache threadCache) Allocate a new | |
| free | back to summary |
|---|---|
| public final int free() Clear out this cache and free up all previous cached | |
| free | back to summary |
|---|---|
| private int free(int max) | |
| freeEntry | back to summary |
|---|---|
| private void freeEntry(PoolThreadCache. | |
| newEntry | back to summary |
|---|---|
| private static PoolThreadCache. | |
| trim | back to summary |
|---|---|
| public final void trim() Free up cached | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv PoolChunk | |
| pack-priv long | |
| pack-priv int | |
| pack-priv final ObjectPool. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void |
| chunk | back to summary |
|---|---|
| pack-priv PoolChunk chunk | |
| handle | back to summary |
|---|---|
| pack-priv long handle | |
| normCapacity | back to summary |
|---|---|
| pack-priv int normCapacity | |
| recyclerHandle | back to summary |
|---|---|
| pack-priv final ObjectPool. | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(ObjectPool. | |
| recycle | back to summary |
|---|---|
| pack-priv void recycle() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected UntetheredMemory | allocBuf(PoolChunk chunk, long handle, int size, PoolThreadCache threadCache)
Implements abstract io. UntetheredMemory using the provided chunk and handle with the capacity restrictions.
|
| NormalMemoryRegionCache | back to summary |
|---|---|
| pack-priv NormalMemoryRegionCache(int size) | |
| allocBuf | back to summary |
|---|---|
| protected UntetheredMemory allocBuf(PoolChunk chunk, long handle, int size, PoolThreadCache threadCache) Implements abstract io. Doc from io. Allocate a new
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected UntetheredMemory | allocBuf(PoolChunk chunk, long handle, int size, PoolThreadCache threadCache)
Implements abstract io. UntetheredMemory using the provided chunk and handle with the capacity restrictions.
|
| SubPageMemoryRegionCache | back to summary |
|---|---|
| pack-priv SubPageMemoryRegionCache(int size) | |
| allocBuf | back to summary |
|---|---|
| protected UntetheredMemory allocBuf(PoolChunk chunk, long handle, int size, PoolThreadCache threadCache) Implements abstract io. Doc from io. Allocate a new
| |