Skip to content

Conversation

@TobiHartmann
Copy link
Member

@TobiHartmann TobiHartmann commented Feb 2, 2021

The InitArrayShortSize flag requires a value that is a multiple of BytesPerLong but no corresponding error message is printed:

java -XX:InitArrayShortSize=7
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Thanks,
Tobias


Progress

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

Issue

  • JDK-8260928: InitArrayShortSize constraint func should print a helpful error message

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/2351/head:pull/2351
$ git checkout pull/2351

@bridgekeeper
Copy link

bridgekeeper bot commented Feb 2, 2021

👋 Welcome back thartmann! 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 openjdk bot added the rfr Pull request is ready for review label Feb 2, 2021
@openjdk
Copy link

openjdk bot commented Feb 2, 2021

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

  • hotspot-runtime

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-runtime hotspot-runtime-dev@openjdk.org label Feb 2, 2021
@TobiHartmann
Copy link
Member Author

/label remove hotspot-runtime
/label add hotspot-compiler

@openjdk openjdk bot removed the hotspot-runtime hotspot-runtime-dev@openjdk.org label Feb 2, 2021
@openjdk
Copy link

openjdk bot commented Feb 2, 2021

@TobiHartmann
The hotspot-runtime label was successfully removed.

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Feb 2, 2021
@openjdk
Copy link

openjdk bot commented Feb 2, 2021

@TobiHartmann
The hotspot-compiler label was successfully added.

@mlbridge
Copy link

mlbridge bot commented Feb 2, 2021

Webrevs

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.

Looks fine to me.

@openjdk
Copy link

openjdk bot commented Feb 2, 2021

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

8260928: InitArrayShortSize constraint func should print a helpful error message

Reviewed-by: shade, chagedorn

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 1 new commit pushed to the master branch:

  • 189b65b: 8260264: Move common os_ inline methods to a common posix source file

Please see this link for an up-to-date comparison between the source branch of this pull request and 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.

if (value % BytesPerLong != 0) {
JVMFlag::printError(verbose,
"InitArrayShortSize (" INTX_FORMAT ") must be "
"a multiple of %d\n", value, BytesPerLong);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider indenting them a bit. I think the line starting from "a... has one excess whitespace.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed. Thanks for the review!

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

@chhagedorn chhagedorn 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.

@TobiHartmann
Copy link
Member Author

Thanks for the review, Christian!

@TobiHartmann
Copy link
Member Author

/integrate

@openjdk openjdk bot closed this Feb 3, 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 Feb 3, 2021
@openjdk
Copy link

openjdk bot commented Feb 3, 2021

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

Your commit was automatically rebased without conflicts.

Pushed as commit 91e6c75.

💡 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.

3 participants