< prev index next >

src/hotspot/share/compiler/methodMatcher.cpp

Print this page
*** 283,18 ***
  
      // Over-consumption
      // method_name points to an option type or option name because the method name is not specified by users.
      // In very rare case, the method name happens to be same as option type/name, so look ahead to make sure
      // it doesn't show up again.
!     if ((OptionType::Unknown != CompilerOracle::parse_option_type(method_name) ||
!         CompileCommandEnum::Unknown != CompilerOracle::parse_option_name(method_name)) &&
!         *(line + bytes_read) != '\0' &&
!         strstr(line + bytes_read, method_name) == nullptr) {
!       error_msg = "Did not specify any method name";
!       method_name[0] = '\0';
!       return;
!     }
  
      if ((strchr(class_name, JVM_SIGNATURE_SPECIAL) != nullptr) ||
          (strchr(class_name, JVM_SIGNATURE_ENDSPECIAL) != nullptr)) {
        error_msg = "Chars '<' and '>' not allowed in class name";
        return;
--- 283,19 ---
  
      // Over-consumption
      // method_name points to an option type or option name because the method name is not specified by users.
      // In very rare case, the method name happens to be same as option type/name, so look ahead to make sure
      // it doesn't show up again.
!     // !!! FIXME !!! rejects TooManyTrapsAtBCI,CLS::print()V,199 command
! //    if ((OptionType::Unknown != CompilerOracle::parse_option_type(method_name) ||
! //        CompileCommandEnum::Unknown != CompilerOracle::parse_option_name(method_name)) &&
! //        *(line + bytes_read) != '\0' &&
! //        strstr(line + bytes_read, method_name) == nullptr) {
! //      error_msg = "Did not specify any method name";
! //      method_name[0] = '\0';
! //      return;
+ //    }
  
      if ((strchr(class_name, JVM_SIGNATURE_SPECIAL) != nullptr) ||
          (strchr(class_name, JVM_SIGNATURE_ENDSPECIAL) != nullptr)) {
        error_msg = "Chars '<' and '>' not allowed in class name";
        return;
< prev index next >