-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8271459: C2: Missing NegativeArraySizeException when creating StringBuilder with negative capacity #111
Conversation
👋 Welcome back apavlyutkin! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
/clean |
@yan-too This backport pull request is now marked as clean |
@apavlyutkin This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 26 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@rwestrel) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@apavlyutkin This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
ping |
@rwestrel Could you please review this? Does that look OK to you for 8u inclusion? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks good to me. Why not include the test case?
Thanks! |
Original tests were not backported to the 11 because they are based on IR test framework that does not exists in the 11. I raised JDK-8295322 to re-factor the tests and incorporate them into the 11 and the 8. |
Makes sense. |
/integrate |
@apavlyutkin |
/sponsor |
Going to push as commit dfeeceb.
Your commit was automatically rebased without conflicts. |
@yan-too @apavlyutkin Pushed as commit dfeeceb. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
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
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev pull/111/head:pull/111
$ git checkout pull/111
Update a local copy of the PR:
$ git checkout pull/111
$ git pull https://git.openjdk.org/jdk8u-dev pull/111/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 111
View PR using the GUI difftool:
$ git pr show -t 111
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/111.diff