| Modifier and Type | Field and Description |
|---|---|
| private volatile long | |
| private final Reallocator | |
| private final boolean | |
| private final CountDownLatch | |
| private long | |
| private final BlockingQueue | |
| private final long | |
| private boolean | |
| private final RefillPile | |
| private final Expiration | |
| private volatile long | |
| private final PreciseLeakDetector | |
| private final LinkedTransferQueue | |
| private final MetricsRecorder | |
| private final RefillPile | |
| private final AtomicInteger | |
| private final BSlot | |
| private volatile boolean | |
| private static final long | shutdownPauseNanos
The amount of time, in nanoseconds, to wait for more work when the shutdown process has deallocated all the dead and live slots it could get its hands on, but there are still (claimed) slots left. |
| private int | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| pack-priv | BAllocThread(LinkedTransferQueue<BSlot<T>> live, RefillPile<T> disregardPile, RefillPile<T> newAllocations, PoolBuilder<T> builder, BSlot<T> poisonPill)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private long | |
| private void | |
| pack-priv long | |
| private void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv int | |
| private void | |
| private void | |
| pack-priv void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | |
| pack-priv void | |
| pack-priv Completion | |
| private void | |
| private void |
| allocationCount | back to summary |
|---|---|
| private volatile long allocationCount | |
| allocator | back to summary |
|---|---|
| private final Reallocator<T> allocator | |
| backgroundExpirationEnabled | back to summary |
|---|---|
| private final boolean backgroundExpirationEnabled | |
| completionLatch | back to summary |
|---|---|
| private final CountDownLatch completionLatch | |
| consecutiveAllocationFailures | back to summary |
|---|---|
| private long consecutiveAllocationFailures | |
| dead | back to summary |
|---|---|
| private final BlockingQueue<BSlot<T>> dead | |
| defaultDeadPollTimeout | back to summary |
|---|---|
| private final long defaultDeadPollTimeout | |
| didAnythingLastIteration | back to summary |
|---|---|
| private boolean didAnythingLastIteration | |
| disregardPile | back to summary |
|---|---|
| private final RefillPile<T> disregardPile | |
| expiration | back to summary |
|---|---|
| private final Expiration<? super T> expiration | |
| failedAllocationCount | back to summary |
|---|---|
| private volatile long failedAllocationCount | |
| leakDetector | back to summary |
|---|---|
| private final PreciseLeakDetector leakDetector | |
| live | back to summary |
|---|---|
| private final LinkedTransferQueue<BSlot<T>> live | |
| metricsRecorder | back to summary |
|---|---|
| private final MetricsRecorder metricsRecorder | |
| newAllocations | back to summary |
|---|---|
| private final RefillPile<T> newAllocations | |
| poisonedSlots | back to summary |
|---|---|
| private final AtomicInteger poisonedSlots | |
| poisonPill | back to summary |
|---|---|
| private final BSlot<T> poisonPill | |
| shutdown | back to summary |
|---|---|
| private volatile boolean shutdown | |
| shutdownPauseNanos | back to summary |
|---|---|
| private static final long shutdownPauseNanos The amount of time, in nanoseconds, to wait for more work when the shutdown process has deallocated all the dead and live slots it could get its hands on, but there are still (claimed) slots left. | |
| size | back to summary |
|---|---|
| private int size | |
| targetSize | back to summary |
|---|---|
| private volatile int targetSize | |
| BAllocThread | back to summary |
|---|---|
| pack-priv BAllocThread(LinkedTransferQueue<BSlot<T>> live, RefillPile<T> disregardPile, RefillPile<T> newAllocations, PoolBuilder<T> builder, BSlot<T> poisonPill) | |
| alloc | back to summary |
|---|---|
| private void alloc(BSlot<T> slot) | |
| backgroundExpirationCheck | back to summary |
|---|---|
| private void backgroundExpirationCheck() | |
| computeDeadPollTimeout | back to summary |
|---|---|
| private long computeDeadPollTimeout() | |
| continuouslyReplenishPool | back to summary |
|---|---|
| private void continuouslyReplenishPool() | |
| countLeakedObjects | back to summary |
|---|---|
| pack-priv long countLeakedObjects() | |
| dealloc | back to summary |
|---|---|
| private void dealloc(BSlot<T> slot) | |
| getAllocationCount | back to summary |
|---|---|
| pack-priv long getAllocationCount() | |
| getFailedAllocationCount | back to summary |
|---|---|
| pack-priv long getFailedAllocationCount() | |
| getTargetSize | back to summary |
|---|---|
| pack-priv int getTargetSize() | |
| increaseSizeByAllocating | back to summary |
|---|---|
| private void increaseSizeByAllocating() | |
| incrementAllocationCounts | back to summary |
|---|---|
| private void incrementAllocationCounts(boolean success) | |
| offerDeadSlot | back to summary |
|---|---|
| pack-priv void offerDeadSlot(BSlot<T> slot) | |
| proactivelyHealPoison | back to summary |
|---|---|
| private void proactivelyHealPoison() | |
| publishSlot | back to summary |
|---|---|
| private void publishSlot(BSlot<T> slot, boolean success, long now) | |
| realloc | back to summary |
|---|---|
| private void realloc(BSlot<T> slot) | |
| reallocateDeadSlot | back to summary |
|---|---|
| private void reallocateDeadSlot(BSlot<T> slot) | |
| recordObjectLifetimeSample | back to summary |
|---|---|
| private void recordObjectLifetimeSample(long nanoseconds) | |
| reduceSizeByDeallocating | back to summary |
|---|---|
| private void reduceSizeByDeallocating(BSlot<T> slot) | |
| registerWithLeakDetector | back to summary |
|---|---|
| private void registerWithLeakDetector(BSlot<T> slot) | |
| replenishPool | back to summary |
|---|---|
| private void replenishPool() throws InterruptedException | |
| resetSlot | back to summary |
|---|---|
| private void resetSlot(BSlot<T> slot, long now) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| setTargetSize | back to summary |
|---|---|
| pack-priv void setTargetSize(int size) | |
| shutdown | back to summary |
|---|---|
| pack-priv Completion shutdown(Thread allocatorThread) | |
| shutPoolDown | back to summary |
|---|---|
| private void shutPoolDown() | |
| unregisterWithLeakDetector | back to summary |
|---|---|
| private void unregisterWithLeakDetector(BSlot<T> slot) | |