hg: jdk9/sandbox/jdk: 8149330: Capacity of StringBuilder should not get close to Integer.MAX_VALUE unless necessary

chris.hegarty at oracle.com chris.hegarty at oracle.com
Wed Mar 2 11:26:01 UTC 2016


Changeset: 123593aacb48
Author:    igerasim
Date:      2016-03-02 14:10 +0300
URL:       http://hg.openjdk.java.net/jdk9/sandbox/jdk/rev/123593aacb48

8149330: Capacity of StringBuilder should not get close to Integer.MAX_VALUE unless necessary
Reviewed-by: martin

! src/java.base/share/classes/java/lang/AbstractStringBuilder.java
+ test/java/lang/StringBuilder/Capacity.java
+ test/java/lang/StringBuilder/HugeCapacity.java



More information about the jdk9-sandbox-changes mailing list