diff src/share/vm/runtime/globals.hpp @ 11070:6e3634222155

8017611: Auto corrector for mistyped vm options Summary: The auto corrector for mistyped vm options fuzzy-matches existing flags based on string similarity (Dice's coefficient). Reviewed-by: kvn, dsamersoff, hseigel, johnc
author tamao
date Fri, 28 Jun 2013 20:18:04 -0700
parents f2110083203d
children 8b789ce47503
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.hpp	Mon Jul 01 09:30:23 2013 -0700
+++ b/src/share/vm/runtime/globals.hpp	Fri Jun 28 20:18:04 2013 -0700
@@ -220,7 +220,8 @@
   // number of flags
   static size_t numFlags;
 
-  static Flag* find_flag(char* name, size_t length, bool allow_locked = false);
+  static Flag* find_flag(const char* name, size_t length, bool allow_locked = false);
+  static Flag* fuzzy_match(const char* name, size_t length, bool allow_locked = false);
 
   bool is_bool() const        { return strcmp(type, "bool") == 0; }
   bool get_bool() const       { return *((bool*) addr); }