[jdk8u-dev] RFR: 8271459: C2: Missing NegativeArraySizeException when creating StringBuilder with negative capacity
Alexey Pavlyutkin
duke at openjdk.org
Wed Sep 21 15:14:26 UTC 2022
On Tue, 23 Aug 2022 12:47:26 GMT, Alexey Pavlyutkin <duke at openjdk.org> wrote:
> Hi!
>
> Here is a backport of JDK-8271459 that fixes lost NegativeArraySizeException on using StringBuilder of negative capacity. The patch from jdk-11 is applied cleanly except the path suffling.
>
> Verification (amd64/Ubuntu 20.04): the reproducer from JBS throws 10000 of 10000 exceptions, and only ~55% (behaviour is non-deterministic) before the patch is applied
>
> Regression: hotspot/test/runtime
ping
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/111
More information about the jdk8u-dev
mailing list