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
8277946: NMT: Deprecate and remove VM.native_memory shutdown jcmd command option #6618
Conversation
|
@zhengyu123 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. |
Nice. Looks good. But that just removes the jcmd; I assume you remove the shutdown-on-OOM functionality, together with shutdown mechanics itself, in a separate RFE?
@zhengyu123 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 27 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.
|
Thanks for the review, @tstuefe Yes, I filed JDK-8277990 to remove the rest. |
Looks fine. I wonder: was NMT_minimal
the state after "shutdown"? If so, should it be removed too? (in separate PR, probably)
Thanks for the review, @shipilev Yes, NMT_minimal will be removed in followup CR 8277990. |
Hi Zhengyu,
I am fine with removal of the shutdown option of the jcmd as presented, but as per the CSR request I think "Deprecate" has to be removed from this as nothing has been deprecated.
I'm not at all clear why the actual shutdown mechanics removal has been deferred to another issue - that would make sense if this PR actually just deprecated something, but as it is I would have expected everything to go. With RDP1 upon us I assume the actual removal will now be in 19.
Thanks,
David
Hi David, Thanks for the review. I were not sure I should remove shutdown mechanics with this CR, as it only mentions jcmd part and there is auto-shutdown part also. I already have the second change ready, will PR tomorrow, it is quite large through. -Zhengyu |
/integrate |
Going to push as commit abaa073.
Your commit was automatically rebased without conflicts. |
@zhengyu123 Pushed as commit abaa073. |
NMT shutdown functionality is a remnant of its first implementation, which could consume excessive amount of memory, therefore, it needed capability to shut it self down to ensure health of JVM. This is no longer a case for new implementation.
NMT shutdown can be requested via Jcmd. However, it is rare used.
We should deprecate for shutdown Jcmd command for removing NMT shutdown functionality.
Corresponding CSR has been approved.
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6618/head:pull/6618
$ git checkout pull/6618
Update a local copy of the PR:
$ git checkout pull/6618
$ git pull https://git.openjdk.java.net/jdk pull/6618/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6618
View PR using the GUI difftool:
$ git pr show -t 6618
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6618.diff