This commit is contained in:
Redkale
2017-02-25 12:53:54 +08:00
parent d73a27be71
commit 9a29a11e22

View File

@@ -59,7 +59,7 @@ public final class ObjectPool<T> implements Supplier<T> {
this.prepare = prepare;
this.recycler = recycler;
this.queue = new LinkedBlockingQueue<>(Math.max(Runtime.getRuntime().availableProcessors() * 2, max));
this.debug = logger.isLoggable(Level.FINER);
this.debug = logger.isLoggable(Level.FINEST);
}
public void setCreator(Creator<T> creator) {