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.
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.
- duplicates
-
JDK-8243208 Clean up JVMFlag implementation
- Resolved
-
JDK-8237807 Store command-line flags in a hashtable
- Closed
- is blocked by
-
JDK-8208089 JEP 347: Enable C++14 Language Features
- Closed
- relates to
-
JDK-7123237 Hotspot command line switches should have multiple type attributes
- Closed