Skip to content

Conversation

@neliasso
Copy link

@neliasso neliasso commented May 28, 2021

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

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8267773: PhaseStringOpts::int_stringSize doesn't handle min_jint correctly

Reviewers

Contributors

  • Adam Farley <afarley@openjdk.org>
  • Aleksey Shipilev <shade@openjdk.org>
  • Nils Eliasson <neliasso@openjdk.org>

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4255/head:pull/4255
$ git checkout pull/4255

Update a local copy of the PR:
$ git checkout pull/4255
$ git pull https://git.openjdk.java.net/jdk pull/4255/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 4255

View PR using the GUI difftool:
$ git pr show -t 4255

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4255.diff

@bridgekeeper
Copy link

bridgekeeper bot commented May 28, 2021

👋 Welcome back neliasso! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 28, 2021

@neliasso The following label will be automatically applied to this pull request:

  • hotspot-compiler

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label May 28, 2021
@neliasso
Copy link
Author

/contributor add afarley

@openjdk
Copy link

openjdk bot commented May 28, 2021

@neliasso
Contributor Adam Farley <afarley@openjdk.org> successfully added.

@neliasso neliasso marked this pull request as ready for review May 28, 2021 21:03
@openjdk openjdk bot added the rfr Pull request is ready for review label May 28, 2021
@mlbridge
Copy link

mlbridge bot commented May 28, 2021

Webrevs

Copy link
Contributor

@rwestrel rwestrel left a 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.

@openjdk
Copy link

openjdk bot commented May 31, 2021

@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:

8267773: PhaseStringOpts::int_stringSize doesn't handle min_jint correctly

Co-authored-by: Adam Farley <afarley@openjdk.org>
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Co-authored-by: Nils Eliasson <neliasso@openjdk.org>
Reviewed-by: roland

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 master branch:

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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label May 31, 2021
Copy link
Member

@shipilev shipilev left a 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.

@neliasso
Copy link
Author

/contributor add shipilev

@openjdk
Copy link

openjdk bot commented May 31, 2021

@neliasso Could not parse shipilev as a valid contributor.
Syntax: /contributor (add|remove) [@user | openjdk-user | Full Name <email@address>]. For example:

  • /contributor add @openjdk-bot
  • /contributor add duke
  • /contributor add J. Duke <duke@openjdk.org>

@neliasso
Copy link
Author

Looks ok to me.

Thank you Roland!

@shipilev
Copy link
Member

My OpenJDK handle is "shade".

@neliasso
Copy link
Author

/contributor add shade

@openjdk
Copy link

openjdk bot commented May 31, 2021

@neliasso
Contributor Aleksey Shipilev <shade@openjdk.org> successfully added.

@mlbridge
Copy link

mlbridge bot commented May 31, 2021

Mailing list message from Nils Eliasson on hotspot-compiler-dev:

Updated.

Thanks for contributing the test!

Best regards,
Nils

On 2021-05-31 18:13, Aleksey Shipilev wrote:

1 similar comment
@mlbridge
Copy link

mlbridge bot commented May 31, 2021

Mailing list message from Nils Eliasson on hotspot-compiler-dev:

Updated.

Thanks for contributing the test!

Best regards,
Nils

On 2021-05-31 18:13, Aleksey Shipilev wrote:

Copy link
Member

@TobiHartmann TobiHartmann left a 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!

Copy link
Member

@TobiHartmann TobiHartmann left a 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?

@neliasso
Copy link
Author

neliasso commented Jun 1, 2021

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.

@neliasso
Copy link
Author

neliasso commented Jun 1, 2021

/contributor add neliasso

@openjdk
Copy link

openjdk bot commented Jun 1, 2021

@neliasso
Contributor Nils Eliasson <neliasso@openjdk.org> successfully added.

@neliasso
Copy link
Author

neliasso commented Jun 2, 2021

/integrate

@openjdk openjdk bot closed this Jun 2, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jun 2, 2021
@openjdk
Copy link

openjdk bot commented Jun 2, 2021

@neliasso Since your change was applied there have been 44 commits pushed to the master branch:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants