-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8277100: Dynamic dump can inadvertently overwrite default CDS archive #6896
8277100: Dynamic dump can inadvertently overwrite default CDS archive #6896
Conversation
/label add hotspot-runtime |
👋 Welcome back ccheung! A progress list of the required criteria for merging this PR into |
@calvinccheung |
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.
LGTM
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.
LGTM.
@calvinccheung 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 3 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 ➡️ To integrate this PR with the above commit message to the |
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 Calvin,
Fix is good, but I have to query whether this is just a P4? I suppose anyone who can overwrite the default archive this way can also restore it with -Xdump, but still this seems a bit of a usability issue worthy of a P3 and fixing in 18.
Thanks,
David
Hi David, I've added a comment to the bug report justifying why this is a P4. Thanks, |
@iklam, @yminqi, @dholmes-ora Thanks for the review. |
Going to push as commit 8549d8b.
Your commit was automatically rebased without conflicts. |
@calvinccheung Pushed as commit 8549d8b. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review this small fix for preventing the default CDS archive from being overwritten via the
-XX:ArchiveClassesAtExit VM option.
If the user sets the -XX:ArchiveClassesAtExit option pointing to the default CDS archive, VM will
exit with the following message:
Cannot specify the default CDS archive for -XX:ArchiveClassesAtExit: <path to classes.jsa>
Passed CI tiers 1 and 2 tests.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6896/head:pull/6896
$ git checkout pull/6896
Update a local copy of the PR:
$ git checkout pull/6896
$ git pull https://git.openjdk.java.net/jdk pull/6896/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6896
View PR using the GUI difftool:
$ git pr show -t 6896
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6896.diff