JDK-8243209 : Generate JVMFlag hashtable with constexpr
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2020-04-20
  • Updated: 2020-09-02
  • Resolved: 2020-08-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16Resolved
Related Reports
Blocks :  
Duplicate :  
Duplicate :  
Relates :  
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.
Comments
This RFE will be implemented as part of JDK-8243208. Closing as a duplicate thereorf.
02-09-2020

Preliminary implementation: http://cr.openjdk.java.net/~iklam/jdk16/8243209-jvm-flags-constexpr.v00/
04-08-2020