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
8274136: -XX:+ExitOnOutOfMemoryError calls exit while threads are running #5668
Conversation
|
@dholmes-ora The following label will be automatically applied to this pull request:
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. |
LGTM.
Your assumption that -XX:+ExitOnOutOfMemoryError
should stop the VM painlessly is what I think too. Our customers use it in scenarios where the VM should go down, quickly, with a minimum of fuzz. E.g. in cloud scenarios, where you want to restart the VM as fast as possible. OTOH, -XX:+CrashOnOutOfMemoryError
should give you a hs-err file and a core, creating either may hang or at least delay matters.
Incidentally, in our SapMachine we added some subtle behavioral changes (https://github.com/SAP/SapMachine/wiki/Handling-of-OnOutOfMemoryError-switches-in-the-SapMachine, see italics). I know we talked about handling Thread exhaustion events, but what about simple stack printing to stdout, do you think that would be useful upstream?
@dholmes-ora This change now passes all automated pre-integration checks. 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 7 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
Going to push as commit 2657bcb.
Your commit was automatically rebased without conflicts. |
@dholmes-ora Pushed as commit 2657bcb. |
Please see bug report for more detailed discussion.
We introduce
os::_exit()
tocall _exit()
to allow us to terminate without running the at_exit handlers and global destructors, which lead to the crashes during termination.Testing: tiers 1-3 (includes the ExitOnOutOfMemoryError test)
Thanks,
David
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5668/head:pull/5668
$ git checkout pull/5668
Update a local copy of the PR:
$ git checkout pull/5668
$ git pull https://git.openjdk.java.net/jdk pull/5668/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5668
View PR using the GUI difftool:
$ git pr show -t 5668
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5668.diff