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
8255285: Move JVMFlag origins into a new enum JVMFlagOrigin #823
Conversation
👋 Welcome back iklam! A progress list of the required criteria for merging this PR into |
/label remove serviceability |
@iklam |
Webrevs
|
Mailing list message from David Holmes on hotspot-dev: Hi Ioi, On 23/10/2020 4:52 pm, Ioi Lam wrote:
I'm still confused :) Why are we reporting "command line" for a flag
Why not define this as enum class Origin inside class JVMFlag, so that it is then referred to as JVMFlag::Origin?
Why is this needed?? To avoid re-typing JVMFlagOrigin? Cheers, |
We have code like this:
So if FLAG_SET_ERGO changes a flag that was specified in the command-line, we will print out "command line, ergonomic".
I have no idea why this is the case. Maybe ergonomics is allowed to "fine tune" user-specified values? Anyway, if we want to change this, we should do it in a separate RFE.
The reason is to allow A nested enum like
Yeah, but I removed this in the latest version 53fed1b |
@iklam 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
Mailing list message from David Holmes on hotspot-dev: Hi Ioi, On 27/10/2020 8:32 am, Ioi Lam wrote:
Yes separate RFE. This might be necessary/desirable but at a minimum it
That is a pity. I'm not sure I agree with the overall approach of making
Okay. Thanks, |
…new-enum-JVMFlagOrigin
/integrate |
Many JVM function take an
JVMFlag::Flags
parameter to indicate the origin of the flag -- i.e., "who is setting this flag". E.g., in arguments.hpp:However,
JVMFlag::Flags
contains many other bits that are unrelated to the origin. We should add a new enumJVMFlagOrigin
that has only the valid values for the origin. This makes it possible to do more type-safety checks at C++ compilation time.This patch also renamed the confusing bit
JVMFlag::ORIG_COMMAND_LINE
toWAS_SET_IN_COMMAND_LINE
and added documentation, so that it won't be confused withJVMFlagOrigin::COMMAND_LINE
.Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/823/head:pull/823
$ git checkout pull/823