[jdk8u-dev] Integrated: 8271459: C2: Missing NegativeArraySizeException when creating StringBuilder with negative capacity
Alexey Pavlyutkin
duke at openjdk.org
Fri Oct 14 09:27:08 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
This pull request has now been integrated.
Changeset: dfeeceb2
Author: Alexey Pavlyutkin <apavlyutkin at azul.com>
Committer: Yuri Nesterenko <yan at openjdk.org>
URL: https://git.openjdk.org/jdk8u-dev/commit/dfeeceb224a62bd7ffbe5adfd36eebe6c853935a
Stats: 51 lines in 1 file changed: 49 ins; 0 del; 2 mod
8271459: C2: Missing NegativeArraySizeException when creating StringBuilder with negative capacity
Reviewed-by: roland
Backport-of: 844c504bc18fa8a79ceacc6b6f235650f5e643bf
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/111
More information about the jdk8u-dev
mailing list