[jdk17u] RFR: 8271459: C2: Missing NegativeArraySizeException when creating StringBuilder with negative capacity

Tobias Hartmann thartmann at openjdk.java.net
Mon Oct 11 12:29:44 UTC 2021


Backport of [JDK-8271459](https://bugs.openjdk.java.net/browse/JDK-8271459). Did not apply cleanly due to changes in IRNode.java. Approval is pending.

Thanks,
Tobias

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

Commit messages:
 - Undo change
 - 8271459: C2: Missing NegativeArraySizeException when creating StringBuilder with negative capacity

Changes: https://git.openjdk.java.net/jdk17u/pull/177/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17u&pr=177&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8271459
  Stats: 276 lines in 4 files changed: 271 ins; 0 del; 5 mod
  Patch: https://git.openjdk.java.net/jdk17u/pull/177.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17u pull/177/head:pull/177

PR: https://git.openjdk.java.net/jdk17u/pull/177


More information about the jdk-updates-dev mailing list