RFR(XS): 8032386: Argument auto-correct suggests arguments which are constant in the binary

Gilles Duboscq duboscq at ssw.jku.at
Tue Jan 21 06:02:23 PST 2014


Hello,

As i wrote in the bug report [1]:
With a product build (note that PrintMethodFlushing is a 'develop' flag):

> java -XX:+PrintMethodFlushing
Unrecognized VM option 'PrintMethodFlushing'
Did you mean '(+/-)PrintMethodFlushing'?
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

This will probably confuse users.

As a fix, I propose to ignore arguments which are constant in the
binary while trying to find a fuzzy match [2]. I think the policy is
to act as if constant options didn't exist in product builds so this
is probably better than telling the user that this option can not be
set in the current build.

-Gilles

[1] https://bugs.openjdk.java.net/browse/JDK-8032386
[2] http://lafo.ssw.uni-linz.ac.at/fuzzy-constant.diff


More information about the hotspot-runtime-dev mailing list