-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8346477: Clarify the Java manpage in relation to the JVM's OnOutOfMemoryError flags #22802
Conversation
/label add hotspot-runtime |
👋 Welcome back dholmes! A progress list of the required criteria for merging this PR into |
@dholmes-ora 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 98 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 |
@dholmes-ora |
Webrevs
|
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.
Hello David, for end users, the distinction between a JVM vs some code running within the Java runtime may not be too clear or obvious. So I think even with this added clarification there might be situations where people will be surprised and will report that these options aren't doing the actions that they expect when OutOfMemoryError is thrown.
But this change is still an improvement to what we currently have. So this looks good to me.
While at it, I noticed in a related JBS issue https://bugs.openjdk.org/browse/JDK-8257790 that you mentioned two additional options ExitOnOutOfMemory
and CrashOnOutOfMemoryError
. Those don't seem to be documented in this man page. Are those still relevant and should they be documented too (as a separate issue)?
Thanks for taking a look at this @jaikiran .
The majority of -XX flags are not documented, and intentionally so. It is somewhat of a legacy situation, whereby -XX flags that tended to be "heavily used" by end users (or were perceived to be potentially useful for end users) were documented. Primarily GC and JIT tuning flags, but also others related to serviceability and debugging. Documenting them can be seen as an encouragement to use them, when that is not the intent for end-users. |
/contributor add @tstuefe |
@dholmes-ora |
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.
Thank you for considering my arguments. Looks good and trivial.
Thank you for that detail. |
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.
Still good
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.
The latest update looks good to me.
/integrate |
Thanks for the reviews and suggestions. |
Going to push as commit cd15ebb.
Your commit was automatically rebased without conflicts. |
@dholmes-ora Pushed as commit cd15ebb. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review this simple clarification to the Java command reference / manpage.
Thanks
Progress
Issue
Reviewers
Contributors
<stuefe@openjdk.org>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22802/head:pull/22802
$ git checkout pull/22802
Update a local copy of the PR:
$ git checkout pull/22802
$ git pull https://git.openjdk.org/jdk.git pull/22802/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22802
View PR using the GUI difftool:
$ git pr show -t 22802
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22802.diff
Using Webrev
Link to Webrev Comment