On Sat, 9 Oct 2021 17:54:16 GMT, Andrey Turbanov 
<github.com+741251+turban...@openjdk.org> wrote:

> 8275002: Remove unused AbstractStringBuilder.MAX_ARRAY_SIZE

src/java.base/share/classes/java/lang/AbstractStringBuilder.java line 240:

> 238:      * OutOfMemoryError: Requested array size exceeds VM limit
> 239:      */
> 240:     private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8;

Looks like the usage of this field was removed by the 
https://github.com/openjdk/lanai/commit/03642a01, note that the doc for the 
"newCapacity" is still mentioned this field.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5878

Reply via email to