Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/BuffersFactory.java @ 868:688b875e18ba
remove ThreadLocalBuffers
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 03 Oct 2016 19:29:34 -0600 |
parents | 3428c60d7cfc |
children | 58a9c4a42292 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/BuffersFactory.java Sun Oct 02 21:06:18 2016 -0600 +++ b/src/org/eclipse/jetty/io/BuffersFactory.java Mon Oct 03 19:29:34 2016 -0600 @@ -20,10 +20,10 @@ public class BuffersFactory { - public static Buffers newBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int bufferSize, Buffers.Type otherType,int maxSize) - { - if (maxSize>=0) - return new PooledBuffers(headerType,headerSize,bufferType,bufferSize,otherType,maxSize); - return new ThreadLocalBuffers(headerType,headerSize,bufferType,bufferSize,otherType); - } + public static Buffers newBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int bufferSize, Buffers.Type otherType,int maxSize) + { + if (maxSize<0) + throw new RuntimeException(); + return new PooledBuffers(headerType,headerSize,bufferType,bufferSize,otherType,maxSize); + } }