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

Generate JVMFlag hashtable with constexpr

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: