RFR: 8275002: Remove unused AbstractStringBuilder.MAX_ARRAY_SIZE
Sergey Bylokhov
serb at openjdk.java.net
Sun Oct 10 22:16:15 UTC 2021
On Sat, 9 Oct 2021 17:54:16 GMT, Andrey Turbanov <github.com+741251+turbanoff at 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
More information about the core-libs-dev
mailing list