RFR: 8147468: Allow users to bound the size of buffers cached in the per-thread buffer caches
Alan Bateman
Alan.Bateman at oracle.com
Fri Jan 22 13:35:21 UTC 2016
On 21/01/2016 16:34, Tony Printezis wrote:
> Alan,
>
> Thanks for the comments. Please take a look at:
>
> http://cr.openjdk.java.net/~tonyp/nio-max-buffer-size/webrev.3/
> <http://cr.openjdk.java.net/%7Etonyp/nio-max-buffer-size/webrev.3/>
>
> * changed jdk.nio.MaxCachedBufferSize to jdk.nio.maxCachedBufferSize
> * changed the copyright to the right (I hope!) version and put the
> right copyright dates
> * test now checks hasRemaining() instead of catching
> BufferOverflowException (I also had to change the buffer put to be
> done as bytes, instead of ints, given that ints are 4-byte aligned and
> the calculated buffer size was not)
> * I now create a FileChannel directly
>
> Tony
>
Thanks Tony, this looks good to me.
-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20160122/19ae9536/attachment.html>
More information about the nio-dev
mailing list