hotspot/src/share/vm/compiler/compilerOracle.cpp
changeset 28720 76473974643b
parent 28496 f9753412d4f5
child 28721 b9655115bf4e
equal deleted inserted replaced
28719:5a9aedf87213 28720:76473974643b
   551 
   551 
   552 static MethodMatcher::Mode check_mode(char name[], const char*& error_msg) {
   552 static MethodMatcher::Mode check_mode(char name[], const char*& error_msg) {
   553   int match = MethodMatcher::Exact;
   553   int match = MethodMatcher::Exact;
   554   while (name[0] == '*') {
   554   while (name[0] == '*') {
   555     match |= MethodMatcher::Suffix;
   555     match |= MethodMatcher::Suffix;
   556     strcpy(name, name + 1);
   556     // Copy remaining string plus NUL to the beginning
       
   557     memmove(name, name + 1, strlen(name + 1) + 1);
   557   }
   558   }
   558 
   559 
   559   if (strcmp(name, "*") == 0) return MethodMatcher::Any;
   560   if (strcmp(name, "*") == 0) return MethodMatcher::Any;
   560 
   561 
   561   size_t len = strlen(name);
   562   size_t len = strlen(name);