hotspot/src/share/vm/runtime/arguments.cpp
changeset 46630 75aa3e39d02c
parent 46625 edefffab74e2
child 46633 5b87fe93ef6d
equal deleted inserted replaced
46629:8eeacdc76bf2 46630:75aa3e39d02c
   147 // If tail_allowed is true, then the tail must begin with a colon; otherwise,
   147 // If tail_allowed is true, then the tail must begin with a colon; otherwise,
   148 // the option must match exactly.
   148 // the option must match exactly.
   149 static bool match_option(const JavaVMOption* option, const char** names, const char** tail,
   149 static bool match_option(const JavaVMOption* option, const char** names, const char** tail,
   150   bool tail_allowed) {
   150   bool tail_allowed) {
   151   for (/* empty */; *names != NULL; ++names) {
   151   for (/* empty */; *names != NULL; ++names) {
   152     if (match_option(option, *names, tail)) {
   152   if (match_option(option, *names, tail)) {
   153       if (**tail == '\0' || tail_allowed && **tail == ':') {
   153       if (**tail == '\0' || (tail_allowed && **tail == ':')) {
   154         return true;
   154         return true;
   155       }
   155       }
   156     }
   156     }
   157   }
   157   }
   158   return false;
   158   return false;