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

Tao Mao tao.mao at
Tue Jun 25 17:44:50 UTC 2013

I'm kinda tired of mistyping VM options and figuring it out 
"mentally"...let machines do it then.

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 to 
get an idea of obtaining string similarity. This new feature is based on 
this theory.


Please try out this patch and see if it meets some need.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the hotspot-gc-dev mailing list