This commit is contained in:
@@ -55,7 +55,7 @@ public final class ObjectPool<T> implements Supplier<T> {
|
|||||||
this.creator = creator;
|
this.creator = creator;
|
||||||
this.prepare = prepare;
|
this.prepare = prepare;
|
||||||
this.recycler = recycler;
|
this.recycler = recycler;
|
||||||
this.queue = new ArrayBlockingQueue(Math.max(Runtime.getRuntime().availableProcessors() * 2, max));
|
this.queue = new LinkedBlockingQueue(Math.max(Runtime.getRuntime().availableProcessors() * 2, max));
|
||||||
this.debug = logger.isLoggable(Level.FINER);
|
this.debug = logger.isLoggable(Level.FINER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user