git: openjdk/jdk17u: master: 8271459: C2: Missing NegativeArraySizeException when creating StringBuilder with negative capacity

Tobias Hartmann thartmann at openjdk.java.net
Tue Oct 12 06:03:27 UTC 2021


Changeset: 1cc972f3
Author:    Tobias Hartmann <thartmann at openjdk.org>
Date:      2021-10-12 06:02:15 +0000
URL:       https://git.openjdk.java.net/jdk17u/commit/1cc972f34ea79242e6016b55c1ab896b5c58a511

8271459: C2: Missing NegativeArraySizeException when creating StringBuilder with negative capacity

Reviewed-by: chagedorn
Backport-of: 3953e0774c59c5e936e752aa08b6b6778e232994

! src/hotspot/share/opto/stringopts.cpp
+ test/hotspot/jtreg/compiler/c2/irTests/stringopts/TestNegativeArraySize.java
! test/hotspot/jtreg/compiler/lib/ir_framework/IRNode.java
! test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestIRMatching.java



More information about the jdk-updates-changes mailing list