src/share/vm/compiler/compilerOracle.cpp

Print this page
rev 3898 : 8005031: Some cleanup in c2 to prepare for incremental inlining support
Summary: collection of small changes to prepare for incremental inlining.
Reviewed-by:


 521           tty->print("CompilerOracle: %s ", command_names[command]);
 522           match->print();
 523         }
 524         match = add_option_string(c_name, c_match, m_name, m_match, signature, strdup(option));
 525         line += bytes_read;
 526       }
 527     } else {
 528       bytes_read = 0;
 529       sscanf(line, "%*[ \t]%n", &bytes_read);
 530       if (line[bytes_read] != '\0') {
 531         jio_snprintf(errorbuf, sizeof(errorbuf), "  Unrecognized text after command: %s", line);
 532         error_msg = errorbuf;
 533       } else {
 534         match = add_predicate(command, c_name, c_match, m_name, m_match, signature);
 535       }
 536     }
 537   }
 538 
 539   if (match != NULL) {
 540     if (!_quiet) {

 541       tty->print("CompilerOracle: %s ", command_names[command]);
 542       match->print();
 543     }
 544   } else {
 545     tty->print_cr("CompilerOracle: unrecognized line");
 546     tty->print_cr("  \"%s\"", original_line);
 547     if (error_msg != NULL) {
 548       tty->print_cr(error_msg);
 549     }
 550   }
 551 }
 552 
 553 static const char* default_cc_file = ".hotspot_compiler";
 554 
 555 static const char* cc_file() {
 556 #ifdef ASSERT
 557   if (CompileCommandFile == NULL)
 558     return default_cc_file;
 559 #endif
 560   return CompileCommandFile;




 521           tty->print("CompilerOracle: %s ", command_names[command]);
 522           match->print();
 523         }
 524         match = add_option_string(c_name, c_match, m_name, m_match, signature, strdup(option));
 525         line += bytes_read;
 526       }
 527     } else {
 528       bytes_read = 0;
 529       sscanf(line, "%*[ \t]%n", &bytes_read);
 530       if (line[bytes_read] != '\0') {
 531         jio_snprintf(errorbuf, sizeof(errorbuf), "  Unrecognized text after command: %s", line);
 532         error_msg = errorbuf;
 533       } else {
 534         match = add_predicate(command, c_name, c_match, m_name, m_match, signature);
 535       }
 536     }
 537   }
 538 
 539   if (match != NULL) {
 540     if (!_quiet) {
 541       ResourceMark rm;
 542       tty->print("CompilerOracle: %s ", command_names[command]);
 543       match->print();
 544     }
 545   } else {
 546     tty->print_cr("CompilerOracle: unrecognized line");
 547     tty->print_cr("  \"%s\"", original_line);
 548     if (error_msg != NULL) {
 549       tty->print_cr(error_msg);
 550     }
 551   }
 552 }
 553 
 554 static const char* default_cc_file = ".hotspot_compiler";
 555 
 556 static const char* cc_file() {
 557 #ifdef ASSERT
 558   if (CompileCommandFile == NULL)
 559     return default_cc_file;
 560 #endif
 561   return CompileCommandFile;