RFR: 8055949: ByteArrayOutputStream capacity should be maximal array size permitted by VM

Martin Buchholz martinrb at google.com
Mon Aug 25 17:37:59 UTC 2014


Hi friends of ByteArrayOutputStream,

I'm trying to clean up an apparent oversight when I tried to fix huge array
resizing back in
6933217: Huge arrays handled poorly in core libraries

https://bugs.openjdk.java.net/browse/JDK-8055949
http://cr.openjdk.java.net/~martin/webrevs/openjdk9/ByteArrayOutputStream-MAX_ARRAY_SIZE/

The 2x capacity gap was noticed by real users!



More information about the core-libs-dev mailing list