From 466778875db2ebf92b18a182a330869401d87ab9 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Tue, 2 Oct 2012 12:34:29 +0000 Subject: [PATCH] * SimpleByteCache: Fix ABQ/LBQ selection --- core/java/src/net/i2p/util/SimpleByteCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/src/net/i2p/util/SimpleByteCache.java b/core/java/src/net/i2p/util/SimpleByteCache.java index dae27d80e1..1623fcb148 100644 --- a/core/java/src/net/i2p/util/SimpleByteCache.java +++ b/core/java/src/net/i2p/util/SimpleByteCache.java @@ -88,7 +88,7 @@ public final class SimpleByteCache { * @since 0.9.2 */ private Queue<byte[]> createQueue() { - if (_maxCached <= MAX_FOR_ABQ) + if (_entrySize <= MAX_FOR_ABQ) return new ArrayBlockingQueue(_maxCached); return new LinkedBlockingQueue(_maxCached); } -- GitLab