-
Notifications
You must be signed in to change notification settings - Fork 77
8258790: C2: Crash on empty macro node list #56
Conversation
👋 Welcome back vlivanov! A progress list of the required criteria for merging this PR into |
Webrevs
|
@iwanowww This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
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.
Looks good to me!
Thanks for the reviews, Vladimir and Christian. |
/integrate |
The fix for 8257624 is incomplete: it doesn't cover the case when macro node array becomes empty as a result of multiple nodes removal. In such case, the out-of-bounds access still takes place (at index "-1").
Proposed fix is to adjust the index before performing "i > 0" check.
Testing:
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk16 pull/56/head:pull/56
$ git checkout pull/56