[8u-dev] Request for REVIEW and APPROVAL to backport: 8149330: Capacity of StringBuilder should not get close to Integer.MAX_VALUE unless necessary

Ivan Gerasimov ivan.gerasimov at oracle.com
Wed Mar 2 17:29:18 UTC 2016


I'm seeking for approval to backport this fix into jdk8u-dev.
Comparing to Jdk9, the patch had to be changed mainly due to compact 
string support introduced in jdk9.
However, the fix is essentially the same: we just avoid getting too 
close to Integer.MAX_VALUE when doing reallocations unless explicitly 

Would you please help review it?

Bug: https://bugs.openjdk.java.net/browse/JDK-8149330
Jdk9 change: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/123593aacb48
Jdk9 review:
Jdk8 webrev: http://cr.openjdk.java.net/~igerasim/8149330/04/webrev/

Sincerely yours,

More information about the core-libs-dev mailing list