diff --git a/jetty-core/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java b/jetty-core/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java index 8e25da119e4..eab35fcd45c 100644 --- a/jetty-core/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java +++ b/jetty-core/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java @@ -69,8 +69,8 @@ public class ArrayByteBufferPool implements ByteBufferPool, Dumpable private final IntUnaryOperator _bucketIndexFor; private final IntUnaryOperator _bucketCapacity; private final AtomicBoolean _evictor = new AtomicBoolean(false); - private final ConcurrentMap _noBucketDirectSizes = new ConcurrentHashMap<>(); - private final ConcurrentMap _noBucketIndirectSizes = new ConcurrentHashMap<>(); + private final ConcurrentMap _noBucketDirectAcquires = new ConcurrentHashMap<>(); + private final ConcurrentMap _noBucketIndirectAcquires = new ConcurrentHashMap<>(); private boolean _statisticsEnabled; /** @@ -236,7 +236,7 @@ private void recordNoBucketAcquire(int size, boolean direct) { if (isStatisticsEnabled()) { - ConcurrentMap map = direct ? _noBucketDirectSizes : _noBucketIndirectSizes; + ConcurrentMap map = direct ? _noBucketDirectAcquires : _noBucketIndirectAcquires; int idx = _bucketIndexFor.applyAsInt(size); int key = _bucketCapacity.applyAsInt(idx); map.compute(key, (k, v) -> @@ -452,9 +452,9 @@ public long getAvailableHeapMemory() public void clear() { clearBuckets(_direct); - _noBucketDirectSizes.clear(); + _noBucketDirectAcquires.clear(); clearBuckets(_indirect); - _noBucketIndirectSizes.clear(); + _noBucketIndirectAcquires.clear(); } private void clearBuckets(RetainedBucket[] buckets) @@ -473,9 +473,9 @@ public void dump(Appendable out, String indent) throws IOException indent, this, DumpableCollection.fromArray("direct", _direct), - new DumpableMap("direct non-pooled acquisitions", _noBucketDirectSizes), + new DumpableMap("direct non-pooled acquisitions", _noBucketDirectAcquires), DumpableCollection.fromArray("indirect", _indirect), - new DumpableMap("indirect non-pooled acquisitions", _noBucketIndirectSizes) + new DumpableMap("indirect non-pooled acquisitions", _noBucketIndirectAcquires) ); }