Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255285

Move JVMFlag origins into a new enum JVMFlagOrigin

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • hotspot
    • b23

      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:

        static bool parse_argument(const char* arg, JVMFlag::Flags origin);

      However, JVMFlag::Flags contains many other bits that are unrelated to the origin. We should add a new enum JVMFlagOrigin that has only the valid values for the origin. This makes it possible to do more type-safety checks at C++ compilation time.

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: