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

Generate JVMFlag hashtable with constexpr

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 15
    • Fix Version/s: 16
    • Component/s: hotspot

      Description

      Currently when a VM parameter such as -XX:+UseCompressedOops is processed by arguments.cpp, we have to linearly search for the JVMFlag structure corresponding to this flag.

      We should build a hashtable so we can search the JVMFlags quickly. To avoid start-up cost, the hashtable should be built with constexpr.

      For a prototype, see
      http://cr.openjdk.java.net/~iklam/design/jvm_flags_overhaul/design-10/

      at build time so we can quickly search for the flag.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iklam Ioi Lam
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: