This commit is contained in:
@@ -77,7 +77,7 @@ public final class ObjectPool<T> {
|
|||||||
if (e != null && recycler.test(e)) {
|
if (e != null && recycler.test(e)) {
|
||||||
if (cycleCounter != null) cycleCounter.incrementAndGet();
|
if (cycleCounter != null) cycleCounter.incrementAndGet();
|
||||||
if (debug) queue.forEach(t -> {
|
if (debug) queue.forEach(t -> {
|
||||||
if (t == e) logger.log(Level.WARNING, "repeat offer the same object(" + e + ")", new Exception());
|
if (t == e) logger.log(Level.WARNING, "[" + Thread.currentThread().getName() + "] repeat offer the same object(" + e + ")", new Exception());
|
||||||
});
|
});
|
||||||
queue.offer(e);
|
queue.offer(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user