-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8267773: PhaseStringOpts::int_stringSize doesn't handle min_jint correctly #4255
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
Conversation
|
👋 Welcome back neliasso! A progress list of the required criteria for merging this PR into |
|
/contributor add afarley |
|
@neliasso |
Webrevs
|
rwestrel
left a comment
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 ok to me.
|
@neliasso 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 34 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. ➡️ To integrate this PR with the above commit message to the |
shipilev
left a comment
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.
Huh, I found a similar issue with fuzzer tests this weekend. I minimized this to string concat bug as well, here is the test that I have: https://cr.openjdk.java.net/~shade/scratch/8267773.patch -- feel free to merge it here.
test/hotspot/jtreg/compiler/stringopts/TestFetchStaticField.java
Outdated
Show resolved
Hide resolved
test/hotspot/jtreg/compiler/stringopts/TestFetchStaticField.java
Outdated
Show resolved
Hide resolved
|
/contributor add shipilev |
|
@neliasso Could not parse
|
Thank you Roland! |
|
My OpenJDK handle is "shade". |
|
/contributor add shade |
|
@neliasso |
|
Mailing list message from Nils Eliasson on hotspot-compiler-dev: Updated. Thanks for contributing the test! Best regards, On 2021-05-31 18:13, Aleksey Shipilev wrote: |
1 similar comment
|
Mailing list message from Nils Eliasson on hotspot-compiler-dev: Updated. Thanks for contributing the test! Best regards, On 2021-05-31 18:13, Aleksey Shipilev wrote: |
TobiHartmann
left a comment
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 fixing!
TobiHartmann
left a comment
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.
What about the "wrong type in PhaseStringOpts::fetch_static_field" you mentioned in the bug comments?
It is a left over from a detour. Removed it. |
|
/contributor add neliasso |
|
@neliasso |
|
/integrate |
|
@neliasso Since your change was applied there have been 44 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit d47a77d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi,
PhaseStringOpts::int_stringSize doesn't handle min_jint correctly - it can't be negated to a positive number. I fix this adding a special case for this.
Added a test that was contributed by Adam who reported the bug. Will add as a contributor.
Please review,
Best regards,
Nils Eliasson
Progress
Issue
Reviewers
Contributors
<afarley@openjdk.org><shade@openjdk.org><neliasso@openjdk.org>Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4255/head:pull/4255$ git checkout pull/4255Update a local copy of the PR:
$ git checkout pull/4255$ git pull https://git.openjdk.java.net/jdk pull/4255/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4255View PR using the GUI difftool:
$ git pr show -t 4255Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4255.diff