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
8290036: Define and specify Runtime shutdown sequence #9437
8290036: Define and specify Runtime shutdown sequence #9437
Conversation
👋 Welcome back smarks! A progress list of the required criteria for merging this PR into |
@stuart-marks 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. |
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.
Hi Stuart,
There's nothing I would consider harmful in these changes, but I also don't see them as necessary.
Cheers.
Sorry David I should have clarified this a bit. The changes currently in this draft PR are merely what occurred to Alex and me while we were working on JLS 12.8. There are a bunch of other issues that need to be covered or at clarified clarified here, or possibly in the Runtime class specification. I'll add them to the bug report, and eventually we'll update this PR with further changes. |
Discussion of the changes in this PR are taking place in the bug report: |
/csr |
@stuart-marks has indicated that a compatibility and specification (CSR) request is needed for this pull request. @stuart-marks please create a CSR request for issue JDK-8290036 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
Webrevs
|
- specify that starting a shutdown hook explicitly has an unspecified effect on the shutdown sequence - link Thread class doc to shutdown sequence - link to Thread.UncaughtExceptionHandler - clarify that only live non-daemon threads are significant - use "thread termination" to conform to the text in the Thread class - adjust line breaks and whitespace
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.
Hi Stuart,
Looking good overall. A few minor comments and one more substantive one regarding DestroyJavaVM
.
Thanks,
David
OK, I finally got back to this. I incorporated most suggested edits. Please re-review. |
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 updates in ca36905 look okay to me, I don't have any more comments/issues.
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! Noting further from me. Thanks @stuart-marks !
CSR drafted, please review: |
/integrate |
@stuart-marks This pull request has not yet been marked as ready for integration. |
@stuart-marks 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 17 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 |
I guess I got into a race with the bot and lost. Retrying. /integrate |
Going to push as commit d4142d8.
Your commit was automatically rebased without conflicts. |
@stuart-marks Pushed as commit d4142d8. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The concept of the shutdown sequence needs to be specified more clearly. This PR adds text for this into the class specification of
java.lang.Runtime
. Also includes adjustments to related areas inaddShutdownHook
,halt
, and in theSystem
andThread
classes. The changes here should coordinate with similar changes to JLS 12.8, JVMS 5.7, and the Invocation API chapter of the JNI Specification.Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9437/head:pull/9437
$ git checkout pull/9437
Update a local copy of the PR:
$ git checkout pull/9437
$ git pull https://git.openjdk.org/jdk pull/9437/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 9437
View PR using the GUI difftool:
$ git pr show -t 9437
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9437.diff