Details
-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
15
Description
All nonproduct and develop flags are added to the flagTable.
http://hg.openjdk.java.net/jdk/jdk/file/2fbc66ef1a1d/src/hotspot/share/runtime/flags/jvmFlag.cpp#l825
The only purpose seems to be printing a warning message when these flags are used
$ java -XX:+TraceInvocationCounterOverflow -version
Error: VM option 'TraceInvocationCounterOverflow' is notproduct and is available only in debug version of VM.
$ java -XX:+TraceInvocationCounterOverflo -version
Unrecognized VM option 'TraceInvocationCounterOverflo'
Did you mean '(+/-)TraceInvocationCounterOverflow'? Error: Could not create the Java Virtual Machine.
Since these flags cannot be set in product builds, printing a message about them doesn't seem that helpful.
We should remove the entries of these flags from flagTable to save space, and make JVMFlag::find_flag() faster.
http://hg.openjdk.java.net/jdk/jdk/file/2fbc66ef1a1d/src/hotspot/share/runtime/flags/jvmFlag.cpp#l825
The only purpose seems to be printing a warning message when these flags are used
$ java -XX:+TraceInvocationCounterOverflow -version
Error: VM option 'TraceInvocationCounterOverflow' is notproduct and is available only in debug version of VM.
$ java -XX:+TraceInvocationCounterOverflo -version
Unrecognized VM option 'TraceInvocationCounterOverflo'
Did you mean '(+/-)TraceInvocationCounterOverflow'? Error: Could not create the Java Virtual Machine.
Since these flags cannot be set in product builds, printing a message about them doesn't seem that helpful.
We should remove the entries of these flags from flagTable to save space, and make JVMFlag::find_flag() faster.
Attachments
Issue Links
- relates to
-
JDK-8236736 Change notproduct JVM flags to develop flags
- Resolved
-
JDK-8024545 make develop and notproduct flag values available in product builds
- Closed
-
JDK-8027314 Java should recognize Diagnostic options if -XX:+UnlockDiagnosticVMOptions is not specified and print an informative message
- Closed