Request for review: 8017611: Auto corrector for mistyped vm options

Christian Thalinger christian.thalinger at oracle.com
Tue Jun 25 17:59:04 UTC 2013


This is nice but I wouldn't use a flag for the percentage:
+  product(uintx, VMOptionsFuzzyMatchSimilarity, 70,                         \
A hardcoded value would do because nobody will change it anyway.

-- Chris

On Jun 25, 2013, at 10:44 AM, Tao Mao <tao.mao at oracle.com> wrote:

> I'm kinda tired of mistyping VM options and figuring it out "mentally"...let machines do it then.
> 
> changeset:
> Currently, when we mistype VM options you will get the warning as following 
> 
> $java -XX:+UseParalelGC -version 
> Unrecognized VM option 'UseParalelGC' 
> 
> I think we can do one step further to interpret the user's intent and suggest the correct VM options. Then i start to imagine that we have something like this 
> 
> $java -XX:+UseParalelGC -version 
> Unrecognized VM option 'UseParalelGC' 
> Did you mean 'UseParallelGC'?
> 
> Please refer to the wikipedia http://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient to get an idea of obtaining string similarity. This new feature is based on this theory.
> 
> webrev:
> http://cr.openjdk.java.net/~tamao/8017611/webrev.00/
> 
> Please try out this patch and see if it meets some need.
> 
> Thanks.
> Tao

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20130625/0daa2bc6/attachment.htm>


More information about the hotspot-gc-dev mailing list